summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2007-05-08 10:45:51 +0000
committerSimon Marlow <simonmar@microsoft.com>2007-05-08 10:45:51 +0000
commit897bcbf84da1b217503e86910ac27255106fc026 (patch)
tree3249987a2cf579f8cd6a0c64c53d066ceceaebbf /rts
parent7f6c03992744898286d41529200508f775a77e04 (diff)
downloadhaskell-897bcbf84da1b217503e86910ac27255106fc026.tar.gz
FIX: #1227 (biographical profiling broken)
We were freeing the hash table storage with exitHashTable() before calling endProfiling(), which uses hash tables.
Diffstat (limited to 'rts')
-rw-r--r--rts/RtsStartup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rts/RtsStartup.c b/rts/RtsStartup.c
index 1d0fec5dd7..f0b39d6a0a 100644
--- a/rts/RtsStartup.c
+++ b/rts/RtsStartup.c
@@ -459,9 +459,6 @@ hs_exit(void)
freeThreadLabelTable();
#endif
- /* free hash table storage */
- exitHashTable();
-
#ifdef RTS_GTK_FRONTPANEL
if (RtsFlags.GcFlags.frontpanel) {
stopFrontPanel();
@@ -489,6 +486,9 @@ hs_exit(void)
shutdownAsyncIO();
#endif
+ /* free hash table storage */
+ exitHashTable();
+
// Finally, free all our storage
freeStorage();