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:
6f37cf1
)
Fix a retainer profiling segfault
author
Ian Lynagh
<igloo@earth.li>
Tue, 19 Oct 2010 13:27:27 +0000
(13:27 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Tue, 19 Oct 2010 13:27:27 +0000
(13:27 +0000)
The bitmap type wasn't big enough to hold large bitmaps on 64 bit
platforms. Profiling GHC was segfaulting when retainStack was handling a
size 33 bitmap.
rts/RetainerProfile.c
patch
|
blob
|
history
diff --git
a/rts/RetainerProfile.c
b/rts/RetainerProfile.c
index
e80a588
..
c5a7bf7
100644
(file)
--- a/
rts/RetainerProfile.c
+++ b/
rts/RetainerProfile.c
@@
-1270,7
+1270,7
@@
retainStack( StgClosure *c, retainer c_child_r,
stackElement *oldStackBoundary;
StgPtr p;
StgRetInfoTable *info;
- StgWord32 bitmap;
+ StgWord bitmap;
nat size;
#ifdef DEBUG_RETAINER