/* -----------------------------------------------------------------------------
- * $Id: Block.h,v 1.6 1999/11/09 15:47:07 simonmar Exp $
+ * $Id: Block.h,v 1.9 2001/07/23 17:23:19 simonmar Exp $
*
* (c) The GHC Team, 1998-1999
*
StgPtr start; /* start addr of memory */
StgPtr free; /* first free byte of memory */
struct _bdescr *link; /* used for chaining blocks together */
- struct _bdescr *back; /* used (occasionally) for doubly-linked lists*/
- struct _generation *gen; /* generation */
+ union {
+ struct _bdescr *back; /* used (occasionally) for doubly-linked lists*/
+ StgWord *bitmap;
+ } u;
+ unsigned int gen_no; /* generation */
struct _step *step; /* step */
StgWord32 blocks; /* no. of blocks (if grp head, 0 otherwise) */
- StgWord32 evacuated; /* block is in to-space */
+ StgWord32 flags; /* block is in to-space */
#if SIZEOF_VOID_P == 8
StgWord32 _padding[2];
#else
#define BDESCR_SHIFT 5
#endif
+#define BF_EVACUATED 1
+#define BF_LARGE 2
+
/* Finding the block descriptor for a given block -------------------------- */
static inline bdescr *Bdescr(StgPtr p)
#define BLOCKS_TO_MBLOCKS(n) \
(1 + (W_)MBLOCK_ROUND_UP((n-BLOCKS_PER_MBLOCK) * BLOCK_SIZE) / MBLOCK_SIZE)
-#endif BLOCK_H
+#endif /* BLOCK_H */