From: Ian Lynagh Date: Tue, 19 Oct 2010 13:27:27 +0000 (+0000) Subject: Fix a retainer profiling segfault X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=140aeb3949039cb7df43ac2d7e4a755fb4711879 Fix a retainer profiling segfault 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. --- diff --git a/rts/RetainerProfile.c b/rts/RetainerProfile.c index e80a588..c5a7bf7 100644 --- 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