summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-08-13 17:04:02 +0000
committerIan Lynagh <igloo@earth.li>2010-08-13 17:04:02 +0000
commit3fb074b5fcfd91fe0d37af83f221450ac4734908 (patch)
treece49021f2f6411643cfc261b79bbb73e4ea1ff1c /includes
parent429dc9a048f5533143fb5c9908b09d3155496e9b (diff)
downloadhaskell-3fb074b5fcfd91fe0d37af83f221450ac4734908.tar.gz
Return memory to the OS; trac #698
Diffstat (limited to 'includes')
-rw-r--r--includes/rts/storage/MBlock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/rts/storage/MBlock.h b/includes/rts/storage/MBlock.h
index 739ac6852a..69b3742514 100644
--- a/includes/rts/storage/MBlock.h
+++ b/includes/rts/storage/MBlock.h
@@ -12,17 +12,17 @@
#ifndef RTS_STORAGE_MBLOCK_H
#define RTS_STORAGE_MBLOCK_H
+extern lnat peak_mblocks_allocated;
extern lnat mblocks_allocated;
extern void initMBlocks(void);
extern void * getMBlock(void);
extern void * getMBlocks(nat n);
+extern void freeMBlocks(void *addr, nat n);
extern void freeAllMBlocks(void);
-#ifdef DEBUG
extern void *getFirstMBlock(void);
extern void *getNextMBlock(void *mblock);
-#endif
#ifdef THREADED_RTS
// needed for HEAP_ALLOCED below