projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add capability sets to the event system. Contains code from Duncan Coutts.
[ghc-hetmet.git]
/
rts
/
sm
/
BlockAlloc.h
diff --git
a/rts/sm/BlockAlloc.h
b/rts/sm/BlockAlloc.h
index
594135a
..
f8b4204
100644
(file)
--- a/
rts/sm/BlockAlloc.h
+++ b/
rts/sm/BlockAlloc.h
@@
-9,14
+9,24
@@
#ifndef BLOCK_ALLOC_H
#define BLOCK_ALLOC_H
#ifndef BLOCK_ALLOC_H
#define BLOCK_ALLOC_H
+#include "BeginPrivate.h"
+
/* Debugging -------------------------------------------------------------- */
/* Debugging -------------------------------------------------------------- */
+extern nat countBlocks (bdescr *bd);
+extern nat countAllocdBlocks (bdescr *bd);
+extern void returnMemoryToOS(nat n);
+
#ifdef DEBUG
#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
#endif
extern lnat n_alloc_blocks; // currently allocated blocks
extern lnat hw_alloc_blocks; // high-water allocated blocks
+#include "EndPrivate.h"
+
#endif /* BLOCK_ALLOC_H */
#endif /* BLOCK_ALLOC_H */