use the initial region table slots again

This commit is contained in:
Daniel Micay 2018-10-15 15:09:41 -04:00
parent da0df69d22
commit 1c9e0d88a5

View File

@ -788,6 +788,7 @@ COLD static void init_slow_path(void) {
ro.regions[1] = allocator_state->regions_b; ro.regions[1] = allocator_state->regions_b;
ra->regions = ro.regions[0]; ra->regions = ro.regions[0];
ra->total = INITIAL_REGION_TABLE_SIZE; ra->total = INITIAL_REGION_TABLE_SIZE;
ra->free = INITIAL_REGION_TABLE_SIZE;
if (memory_protect_rw(ra->regions, ra->total * sizeof(struct region_metadata))) { if (memory_protect_rw(ra->regions, ra->total * sizeof(struct region_metadata))) {
fatal_error("failed to unprotect memory for regions table"); fatal_error("failed to unprotect memory for regions table");
} }