X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2Fsm%2FBlockAlloc.h;h=f8b4204e1112d9591f4289c6b83e27c346b90348;hb=26f4bfc82f2b2359259578e9c54d476fc2de650f;hp=2d777f7cae3b632d8ff3edb9d4bd9f9cc5b3d00c;hpb=a7f2a897bab20f05d4cf5fc8cdae328698c7fc82;p=ghc-hetmet.git diff --git a/rts/sm/BlockAlloc.h b/rts/sm/BlockAlloc.h index 2d777f7..f8b4204 100644 --- a/rts/sm/BlockAlloc.h +++ b/rts/sm/BlockAlloc.h @@ -9,14 +9,24 @@ #ifndef BLOCK_ALLOC_H #define BLOCK_ALLOC_H +#include "BeginPrivate.h" + /* Debugging -------------------------------------------------------------- */ +extern nat countBlocks (bdescr *bd); +extern nat countAllocdBlocks (bdescr *bd); +extern void returnMemoryToOS(nat n); + #ifdef DEBUG -extern void checkFreeListSanity(void); -nat countFreeList(void); +void checkFreeListSanity(void); +nat countFreeList(void); +void markBlocks (bdescr *bd); +void reportUnmarkedBlocks (void); #endif -lnat n_alloc_blocks; // currently allocated blocks -lnat hw_alloc_blocks; // high-water allocated blocks +extern lnat n_alloc_blocks; // currently allocated blocks +extern lnat hw_alloc_blocks; // high-water allocated blocks + +#include "EndPrivate.h" #endif /* BLOCK_ALLOC_H */