This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Patch to dcrt0.cc for dmalloc
- From: "Pierre A. Humblet" <Pierre dot Humblet at ieee dot org>
- To: cygwin-patches at cygwin dot com
- Date: Wed, 05 Apr 2006 20:16:22 -0400
- Subject: Patch to dcrt0.cc for dmalloc
2006-04-06 Pierre Humblet <Pierre.Humblet@ieee.org>
* drct0.cc (dll_crt0_1): Move malloc_init after
user_data->resourcelocks->Init.
diff -u -p -r1.303 dcrt0.cc
--- dcrt0.cc 3 Apr 2006 17:33:07 -0000 1.303
+++ dcrt0.cc 5 Apr 2006 16:07:53 -0000
@@ -784,7 +784,6 @@ static void
dll_crt0_1 (char *)
{
check_sanity_and_sync (user_data);
- malloc_init ();
#ifdef CGF
int i = 0;
const int n = 2 * 1024 * 1024;
@@ -794,6 +793,7 @@ dll_crt0_1 (char *)
user_data->resourcelocks->Init ();
user_data->threadinterface->Init ();
+ malloc_init ();
ProtectHandle (hMainProc);
ProtectHandle (hMainThread);