Fix a retainer profiling segfault
authorIan Lynagh <igloo@earth.li>
Tue, 19 Oct 2010 13:27:27 +0000 (13:27 +0000)
committerIan 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

index e80a588..c5a7bf7 100644 (file)
@@ -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