summaryrefslogtreecommitdiff
path: root/rts/posix
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-11-01 16:18:02 +0000
committerIan Lynagh <igloo@earth.li>2010-11-01 16:18:02 +0000
commit066d28b97c0c50ba5c2f395e02e2c56b3e562537 (patch)
tree80f03c6942afcb9c3c56c834886373216a25aa2f /rts/posix
parentc53c1c16f47f331e3c1608f66e0b760d140105e6 (diff)
downloadhaskell-066d28b97c0c50ba5c2f395e02e2c56b3e562537.tar.gz
On Windows, when returning memory to the OS, we try to release it
as well as decommiting it.
Diffstat (limited to 'rts/posix')
-rw-r--r--rts/posix/OSMem.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rts/posix/OSMem.c b/rts/posix/OSMem.c
index 9993da3123..bfe12964a2 100644
--- a/rts/posix/OSMem.c
+++ b/rts/posix/OSMem.c
@@ -211,6 +211,10 @@ void osFreeMBlocks(char *addr, nat n)
munmap(addr, n * MBLOCK_SIZE);
}
+void osReleaseFreeMemory(void) {
+ /* Nothing to do on POSIX */
+}
+
void osFreeAllMBlocks(void)
{
void *mblock;