brk(): more forceful heap extension

This commit is contained in:
Balazs Gerofi
2017-03-06 16:58:11 +09:00
parent e554f4e2f9
commit 0dd2fad33b
4 changed files with 35 additions and 31 deletions

View File

@ -209,7 +209,9 @@ int prepare_process_ranges_args_envs(struct thread *thread,
pn->at_entry += aout_base;
}
vm->region.brk_start = vm->region.brk_end =
vm->region.brk_start =
vm->region.brk_end =
vm->region.brk_end_allocated =
(vm->region.data_end + LARGE_PAGE_SIZE - 1) & LARGE_PAGE_MASK;
/* Map, copy and update args and envs */