* init.cc (dll_entry): Call prime_threads after dll_crt0_0 to avoid conflicts
between heap allocation and thread stack allocation.
This commit is contained in:
parent
a4cd7f20f7
commit
6ba157bb2e
|
@ -1,3 +1,8 @@
|
||||||
|
2005-12-16 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* 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 <cgf@timesys.com>
|
2005-12-16 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* hookapi.cc (putmem): Remove query of previous memory protection since
|
* hookapi.cc (putmem): Remove query of previous memory protection since
|
||||||
|
|
|
@ -160,8 +160,8 @@ dll_entry (HANDLE h, DWORD reason, void *static_load)
|
||||||
&& is_wow64_proc)
|
&& is_wow64_proc)
|
||||||
respawn_wow64_process ();
|
respawn_wow64_process ();
|
||||||
|
|
||||||
prime_threads ();
|
|
||||||
dll_crt0_0 ();
|
dll_crt0_0 ();
|
||||||
|
prime_threads (); // this should be the last thing to happen
|
||||||
break;
|
break;
|
||||||
case DLL_PROCESS_DETACH:
|
case DLL_PROCESS_DETACH:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue