X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FFrontPanel.c;h=579b75bab3c261b0b885ad7209377a96136a5895;hb=3eacdc7faf0d0e87a7201253f9f12c1fb4db7249;hp=34cf5d8af69ab1b9bec4d8de9bb2ddc548fc32c5;hpb=1a4ea2e4eceee09855ae7059f7f27af6b04f2b32;p=ghc-hetmet.git diff --git a/ghc/rts/FrontPanel.c b/ghc/rts/FrontPanel.c index 34cf5d8..579b75b 100644 --- a/ghc/rts/FrontPanel.c +++ b/ghc/rts/FrontPanel.c @@ -1,5 +1,4 @@ /* ----------------------------------------------------------------------------- - * $Id: FrontPanel.c,v 1.6 2001/08/16 05:30:27 chak Exp $ * * (c) The GHC Team 2000 * @@ -17,14 +16,13 @@ #include "MBlock.h" #include "FrontPanel.h" #include "Storage.h" -#include "StoragePriv.h" #include "Stats.h" #include "RtsFlags.h" #include "Schedule.h" -#include -#include #include +#include +#include #include "VisSupport.h" #include "VisWindow.h" @@ -103,7 +101,7 @@ configure_event( GtkWidget *widget, GdkEventConfigure *event STG_UNUSED, widget->allocation.width, widget->allocation.height); - fprintf(stderr, "configure!\n"); + debugBelch("configure!\n"); updateFrontPanel(); return TRUE; } @@ -397,11 +395,12 @@ updateFrontPanel( void ) block_width, block_height, blocks_per_line ); } +#if 0 /* Segfaults because bd appears to be bogus but != NULL. stolz, 2003-06-24 */ /* color each block */ for (; a <= LAST_BLOCK(m); (char *)a += BLOCK_SIZE) { bd = Bdescr((P_)a); ASSERT(bd->start == a); - if (bd->free == (void *)-1) { + if (bd->flags & BF_FREE) { colorBlock( a, &free_color, block_width, block_height, blocks_per_line ); } else { @@ -409,6 +408,7 @@ updateFrontPanel( void ) block_width, block_height, blocks_per_line ); } } +#endif } @@ -605,7 +605,7 @@ residencyCensus( void ) g == 0 && s == 0) continue; if (RtsFlags.GcFlags.generations == 1) { - bd = generations[g].steps[s].to_blocks; +/* bd = generations[g].steps[s].to_blocks; FIXME to_blocks does not exist */ } else { bd = generations[g].steps[s].blocks; } @@ -668,12 +668,12 @@ residencyCensus( void ) case SE_CAF_BLACKHOLE: case SE_BLACKHOLE: case BLACKHOLE: - case BLACKHOLE_BQ: +/* case BLACKHOLE_BQ: FIXME: case does not exist */ size = sizeW_fromITBL(info); type = BlackHole; break; - case AP_UPD: + case AP: size = pap_sizeW((StgPAP *)p); type = Thunk; break; @@ -700,10 +700,10 @@ residencyCensus( void ) break; case WEAK: - case FOREIGN: case STABLE_NAME: case MVAR: case MUT_VAR: +/* case MUT_CONS: FIXME: case does not exist */ case IND_PERM: case IND_OLDGEN_PERM: size = sizeW_fromITBL(info);