initProfiling1();
/* start the virtual timer 'subsystem'. */
+ initTimer();
startTimer();
/* Initialise the stats department */
/* stop the ticker */
stopTimer();
+ exitTimer();
/* reset the standard file descriptors to blocking mode */
resetNonBlockingFd(0);
/* free the stable pointer table */
exitStablePtrTable();
- freeProfiling1();
-
#if defined(DEBUG)
/* free the thread label table */
freeThreadLabelTable();
#endif
endProfiling();
+ freeProfiling1();
#ifdef PROFILING
// Originally, this was in report_ccs_profiling(). Now, retainer
#endif
#if defined(mingw32_HOST_OS) && !defined(THREADED_RTS)
- shutdownAsyncIO();
+ shutdownAsyncIO(wait_foreign);
#endif
/* free hash table storage */