X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FRtsStartup.c;h=51047218feca73c4d7aff1ca4cf4de0eca77ca58;hb=d759c7231dde979ed2824bd39b2fdff24357d355;hp=8be4044c05176dc6ae119d55b439ff014936e122;hpb=681aad99cb29ce54f72ec2a916fb1aab0fa0fabb;p=ghc-hetmet.git diff --git a/rts/RtsStartup.c b/rts/RtsStartup.c index 8be4044..5104721 100644 --- a/rts/RtsStartup.c +++ b/rts/RtsStartup.c @@ -463,8 +463,6 @@ hs_exit_(rtsBool wait_foreign) /* free the stable pointer table */ exitStablePtrTable(); - freeProfiling1(); - #if defined(DEBUG) /* free the thread label table */ freeThreadLabelTable(); @@ -481,6 +479,7 @@ hs_exit_(rtsBool wait_foreign) #endif endProfiling(); + freeProfiling1(); #ifdef PROFILING // Originally, this was in report_ccs_profiling(). Now, retainer @@ -494,7 +493,7 @@ hs_exit_(rtsBool wait_foreign) #endif #if defined(mingw32_HOST_OS) && !defined(THREADED_RTS) - shutdownAsyncIO(); + shutdownAsyncIO(wait_foreign); #endif /* free hash table storage */