newlib-cygwin/winsup/cygwin/mm
Takashi Yano a81fef51cf Cygwin: cygheap: Initialize myself_pinfo before child_copy().
After the commit 30add3e6b3, the problem:
https://cygwin.com/pipermail/cygwin/2022-December/252759.html
occurs rarely. It seems that myself_pinfo should be initialized
where the timing before child_copy() and after cygheap allocation.
This patch moves the initialization there.

Fixes: 30add3e6b3 ("Cygwin: exec: don't access cygheap before it's
initialized")
Reported-by: Brian Inglis <Brian.Inglis@Shaw.ca>
Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
2023-01-10 21:04:29 +09:00
..
cygheap.cc Cygwin: cygheap: Initialize myself_pinfo before child_copy(). 2023-01-10 21:04:29 +09:00
heap.cc Cygwin: add memory_layout.h 2022-10-28 16:26:53 +02: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: decouple shared mem regions from Cygwin DLL 2022-10-28 16:26:53 +02:00