mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2024-10-01 01:36:01 -04:00
use the initial region table slots again
This commit is contained in:
parent
da0df69d22
commit
1c9e0d88a5
1
malloc.c
1
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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user