This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]