X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2Fsm%2FBlockAlloc.h;h=b6d451f39fa7f85e2f45e5bbd3d789871470c815;hb=bc115352a6211fa8814eb1b584fe5284bf57ca00;hp=1472ac6f76be5de28af1cf9f45c702ecc4ad3b6a;hpb=ab0e778ccfde61aed4c22679b24d175fc6cc9bf3;p=ghc-hetmet.git diff --git a/rts/sm/BlockAlloc.h b/rts/sm/BlockAlloc.h index 1472ac6..b6d451f 100644 --- a/rts/sm/BlockAlloc.h +++ b/rts/sm/BlockAlloc.h @@ -9,11 +9,23 @@ #ifndef BLOCK_ALLOC_H #define BLOCK_ALLOC_H +BEGIN_RTS_PRIVATE + /* Debugging -------------------------------------------------------------- */ +extern nat countBlocks (bdescr *bd); +extern nat countAllocdBlocks (bdescr *bd); + #ifdef DEBUG -extern void checkFreeListSanity(void); -nat countFreeList(void); +void checkFreeListSanity(void); +nat countFreeList(void); +void markBlocks (bdescr *bd); +void reportUnmarkedBlocks (void); #endif +extern lnat n_alloc_blocks; // currently allocated blocks +extern lnat hw_alloc_blocks; // high-water allocated blocks + +END_RTS_PRIVATE + #endif /* BLOCK_ALLOC_H */