FIX: #1227 (biographical profiling broken)
authorSimon Marlow <simonmar@microsoft.com>
Tue, 8 May 2007 10:45:51 +0000 (10:45 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 8 May 2007 10:45:51 +0000 (10:45 +0000)
We were freeing the hash table storage with exitHashTable() before
calling endProfiling(), which uses hash tables.

rts/RtsStartup.c

index 1d0fec5..f0b39d6 100644 (file)
@@ -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();