From 6b7b194c1dab1779a414268d6ba022865c093d79 Mon Sep 17 00:00:00 2001 From: cgf Date: Fri, 16 Dec 2005 20:40:02 +0000 Subject: [PATCH] * init.cc (dll_entry): Call prime_threads after dll_crt0_0 to avoid conflicts between heap allocation and thread stack allocation. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/init.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 85fe362bda..3ae7043205 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2005-12-16 Christopher Faylor + * init.cc (dll_entry): Call prime_threads after dll_crt0_0 to avoid + conflicts between heap allocation and thread stack allocation. + +2005-12-16 Christopher Faylor + * hookapi.cc (putmem): Remove query of previous memory protection since we get that for free the first time we call VirtualProtect. diff --git a/winsup/cygwin/init.cc b/winsup/cygwin/init.cc index 655d89160f..59e59ccd04 100644 --- a/winsup/cygwin/init.cc +++ b/winsup/cygwin/init.cc @@ -160,8 +160,8 @@ dll_entry (HANDLE h, DWORD reason, void *static_load) && is_wow64_proc) respawn_wow64_process (); - prime_threads (); dll_crt0_0 (); + prime_threads (); // this should be the last thing to happen break; case DLL_PROCESS_DETACH: break; -- 2.11.0