/* -----------------------------------------------------------------------------
- * $Id: Block.h,v 1.14 2003/09/23 15:38:35 simonmar Exp $
+ * $Id: Block.h,v 1.16 2003/11/26 12:14:26 simonmar Exp $
*
* (c) The GHC Team, 1998-1999
*
#define BDESCR_SHIFT 5
#endif
+// Block contains objects evacuated during this GC
#define BF_EVACUATED 1
+// Block is a large object
#define BF_LARGE 2
+// Block is pinned
#define BF_PINNED 4
+// Block is part of a compacted generation
+#define BF_COMPACTED 8
/* Finding the block descriptor for a given block -------------------------- */
-static inline bdescr *Bdescr(StgPtr p)
+INLINE_HEADER bdescr *Bdescr(StgPtr p)
{
return (bdescr *)
((((W_)p & MBLOCK_MASK & ~BLOCK_MASK) >> (BLOCK_SHIFT-BDESCR_SHIFT))