Skip to content

Commit

Permalink
deal with BLOCK_SIZE not be size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Eker committed Oct 18, 2024
1 parent 6aa4e60 commit 4142caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/alloc/arena.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ get_arena_semispace_id_of_object(void *ptr) {
//
// We will reserve enough address space for 1 million 1MB blocks. Might want to increase this on a > 1TB server.
//
size_t const HYPERBLOCK_SIZE = BLOCK_SIZE * 1024 * 1024;
size_t const HYPERBLOCK_SIZE = (size_t) BLOCK_SIZE * 1024 * 1024;
static thread_local void* hyperblock_ptr = nullptr; // only needed for munmap()

static void*
Expand Down

0 comments on commit 4142caa

Please sign in to comment.