projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A small GC optimisation
[ghc-hetmet.git]
/
rts
/
sm
/
BlockAlloc.h
diff --git
a/rts/sm/BlockAlloc.h
b/rts/sm/BlockAlloc.h
index
86836e4
..
f8b4204
100644
(file)
--- a/
rts/sm/BlockAlloc.h
+++ b/
rts/sm/BlockAlloc.h
@@
-9,10
+9,14
@@
#ifndef BLOCK_ALLOC_H
#define BLOCK_ALLOC_H
#ifndef BLOCK_ALLOC_H
#define BLOCK_ALLOC_H
-#pragma GCC visibility push(hidden)
+#include "BeginPrivate.h"
/* Debugging -------------------------------------------------------------- */
/* Debugging -------------------------------------------------------------- */
+extern nat countBlocks (bdescr *bd);
+extern nat countAllocdBlocks (bdescr *bd);
+extern void returnMemoryToOS(nat n);
+
#ifdef DEBUG
void checkFreeListSanity(void);
nat countFreeList(void);
#ifdef DEBUG
void checkFreeListSanity(void);
nat countFreeList(void);
@@
-23,6
+27,6
@@
void reportUnmarkedBlocks (void);
extern lnat n_alloc_blocks; // currently allocated blocks
extern 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
-#pragma GCC visibility pop
+#include "EndPrivate.h"
#endif /* BLOCK_ALLOC_H */
#endif /* BLOCK_ALLOC_H */