From 1c9e0d88a567479fdad84be1587a9798c82b66d9 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 15 Oct 2018 15:09:41 -0400 Subject: [PATCH] use the initial region table slots again --- malloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/malloc.c b/malloc.c index 34c7df4..a522d11 100644 --- a/malloc.c +++ b/malloc.c @@ -788,6 +788,7 @@ COLD static void init_slow_path(void) { ro.regions[1] = allocator_state->regions_b; ra->regions = ro.regions[0]; ra->total = INITIAL_REGION_TABLE_SIZE; + ra->free = INITIAL_REGION_TABLE_SIZE; if (memory_protect_rw(ra->regions, ra->total * sizeof(struct region_metadata))) { fatal_error("failed to unprotect memory for regions table"); }