X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FRtsStartup.c;h=951b07fab2ced78a87622f8d0d8b2de1ddbb9edb;hb=4dc5598c02fcdd00b3f9f3f13421b489bafe178f;hp=8be4044c05176dc6ae119d55b439ff014936e122;hpb=681aad99cb29ce54f72ec2a916fb1aab0fa0fabb;p=ghc-hetmet.git diff --git a/rts/RtsStartup.c b/rts/RtsStartup.c index 8be4044..951b07f 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(); @@ -480,6 +478,8 @@ hs_exit_(rtsBool wait_foreign) reportCCSProfiling(); #endif + freeProfiling1(); + endProfiling(); #ifdef PROFILING @@ -494,7 +494,7 @@ hs_exit_(rtsBool wait_foreign) #endif #if defined(mingw32_HOST_OS) && !defined(THREADED_RTS) - shutdownAsyncIO(); + shutdownAsyncIO(wait_foreign); #endif /* free hash table storage */