projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
On Windows, when returning memory to the OS, we try to release it
[ghc-hetmet.git]
/
rts
/
sm
/
BlockAlloc.c
diff --git
a/rts/sm/BlockAlloc.c
b/rts/sm/BlockAlloc.c
index
8eaba72
..
f0f786b
100644
(file)
--- a/
rts/sm/BlockAlloc.c
+++ b/
rts/sm/BlockAlloc.c
@@
-697,6
+697,8
@@
void returnMemoryToOS(nat n /* megablocks */)
}
free_mblock_list = bd;
}
free_mblock_list = bd;
+ osReleaseFreeMemory();
+
IF_DEBUG(gc,
if (n != 0) {
debugBelch("Wanted to free %d more MBlocks than are freeable\n",
IF_DEBUG(gc,
if (n != 0) {
debugBelch("Wanted to free %d more MBlocks than are freeable\n",