projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
23e5985
)
another fix for -hb: we appear to be freeing the hash table and arena twice
author
Simon Marlow
<simonmar@microsoft.com>
Wed, 13 Jun 2007 11:15:52 +0000
(11:15 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Wed, 13 Jun 2007 11:15:52 +0000
(11:15 +0000)
rts/ProfHeap.c
patch
|
blob
|
history
diff --git
a/rts/ProfHeap.c
b/rts/ProfHeap.c
index
ed5dc36
..
f1a3b05
100644
(file)
--- a/
rts/ProfHeap.c
+++ b/
rts/ProfHeap.c
@@
-343,8
+343,12
@@
initEra(Census *census)
STATIC_INLINE void
freeEra(Census *census)
{
- arenaFree(census->arena);
- freeHashTable(census->hash, NULL);
+ if (RtsFlags.ProfFlags.bioSelector != NULL)
+ // when bioSelector==NULL, these are freed in heapCensus()
+ {
+ arenaFree(census->arena);
+ freeHashTable(census->hash, NULL);
+ }
}
/* --------------------------------------------------------------------------