summaryrefslogtreecommitdiff
path: root/rts/RtsStartup.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/RtsStartup.c')
-rw-r--r--rts/RtsStartup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rts/RtsStartup.c b/rts/RtsStartup.c
index 371c96d08c..86d5b2f2d9 100644
--- a/rts/RtsStartup.c
+++ b/rts/RtsStartup.c
@@ -370,6 +370,7 @@ hs_init_ghc(int *argc, char **argv[], RtsConfig rts_config)
#if defined(PROFILING)
initProfiling();
#endif
+ initIpeMapLock();
traceInitEvent(dumpIPEToEventLog);
initHeapProfiling();
@@ -593,6 +594,8 @@ hs_exit_(bool wait_foreign)
// Free threading resources
freeThreadingResources();
+
+ closeIpeMapLock();
}
// Flush stdout and stderr. We do this during shutdown so that it