/* -----------------------------------------------------------------------------
- * $Id: FrontPanel.c,v 1.3 2001/01/19 11:06:20 simonmar Exp $
+ * $Id: FrontPanel.c,v 1.6 2001/08/16 05:30:27 chak Exp $
*
* (c) The GHC Team 2000
*
#ifdef RTS_GTK_FRONTPANEL
-#define NON_POSIX_SOURCE
+/* Alas, not Posix. */
+/* #include "PosixSource.h" */
#include "Rts.h"
#include "RtsUtils.h"
#include "MBlock.h"
#include "FrontPanel.h"
+#include "Storage.h"
#include "StoragePriv.h"
#include "Stats.h"
#include "RtsFlags.h"
if (bd->free == (void *)-1) {
colorBlock( a, &free_color,
block_width, block_height, blocks_per_line );
- } else if (bd->gen != NULL) {
- colorBlock( a, &gen_colors[bd->gen->no],
+ } else {
+ colorBlock( a, &gen_colors[bd->gen_no],
block_width, block_height, blocks_per_line );
- } else if (bd->link != NULL) {
- if (bd->link->free == (void *)-1) {
- colorBlock( a, &free_color,
- block_width, block_height, blocks_per_line );
-
- } else if (bd->link->gen != NULL) {
- colorBlock( a, &gen_colors[bd->link->gen->no],
- block_width, block_height, blocks_per_line );
- } else {
- belch("block at %p: can't indentify", bd->start);
- }
}
}
}
g == 0 && s == 0) continue;
if (RtsFlags.GcFlags.generations == 1) {
- bd = generations[g].steps[s].to_space;
+ bd = generations[g].steps[s].to_blocks;
} else {
bd = generations[g].steps[s].blocks;
}
type = Other;
switch (info->type) {
- case BCO:
- size = bco_sizeW((StgBCO *)p);
- type = Other;
- break;
-
+
case CONSTR:
+ case BCO:
if (((StgClosure *)p)->header.info == &stg_DEAD_WEAK_info) {
size = sizeofW(StgWeak);
type = Other;