Skip to content

Commit

Permalink
cant double size in child
Browse files Browse the repository at this point in the history
  • Loading branch information
amoldeshpande committed Jun 2, 2021
1 parent b2b9914 commit b81586d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions win32/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,7 @@ void heap_init(void) {
char * temp;
int err;
if (__forked) {
// reserve some extra heap in the child, just in case
temp = (char *)VirtualAlloc((void*)__heap_base,__heap_size*2, MEM_RESERVE,
temp = (char *)VirtualAlloc((void*)__heap_base,__heap_size, MEM_RESERVE,
PAGE_READWRITE);
if (temp != (char*)__heap_base) {
if (!temp){
Expand Down

0 comments on commit b81586d

Please sign in to comment.