diff options
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 80a3d26c0..8e33550e0 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -637,9 +637,6 @@ dll_crt0_1 () (void) SetErrorMode (SEM_FAILCRITICALERRORS); - /* Initialize the heap. */ - heap_init (); - /* Initialize events. */ events_init (); @@ -673,6 +670,9 @@ dll_crt0_1 () longjmp (ciresrv->jmp, ciresrv->cygpid); } + /* Initialize the heap. */ + heap_init (); + /* Initialize our process table entry. Don't use the parent info for dynamically loaded case. */ pinfo_init ((dynamically_loaded) ? NULL : info); |