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 authored and stevenmeker committed Oct 21, 2024
1 parent 7b8a521 commit bf3435e
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 bf3435e

Please sign in to comment.