newlib-cygwin/winsup/cygwin/mm
David McFarland a14a0e542d Cygwin: cygheap: fix fork error after heap has grown
2f9b8ff0 introduced a problem where forks would sometimes fail with:

child_copy: cygheap read copy failed, 0x0..0x80044C750, done 0, windows pid 14032, Win32 error 299

When cygheap_max was > CYGHEAP_STORAGE_INITIAL, commit_size would be set to
allocsize(cygheap_max), which is an address, not a size.  VirtualAlloc would be
called to commit commit_size bytes, which would fail, and then child_copy would
be called with zero as the base address.

Fixes: 2f9b8ff00c ("Cygwin: decouple cygheap from Cygwin DLL")
Signed-off-by: David McFarland <corngood@gmail.com>
2023-04-18 10:06:53 +02:00
..
cygheap.cc Cygwin: cygheap: fix fork error after heap has grown 2023-04-18 10:06:53 +02:00
heap.cc Cygwin: fix two comments in heap.cc and memory_layout.h 2023-01-18 20:13:38 +01:00
malloc.cc
malloc_wrapper.cc Cygwin: mm/malloc_wrapper.cc: fix a comment 2022-08-10 18:05:12 +02:00
mmap.cc Cygwin: mmap: use SRWLOCK instead of muto 2022-08-23 12:09:44 +02:00
mmap_alloc.cc
shared.cc Cygwin: memory_init: initialize user heap here 2023-01-18 20:13:38 +01:00