projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f6c039
)
FIX: #1227 (biographical profiling broken)
author
Simon Marlow
<simonmar@microsoft.com>
Tue, 8 May 2007 10:45:51 +0000
(10:45 +0000)
committer
Simon 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
patch
|
blob
|
history
diff --git
a/rts/RtsStartup.c
b/rts/RtsStartup.c
index
1d0fec5
..
f0b39d6
100644
(file)
--- 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();