On Windows, when returning memory to the OS, we try to release it
[ghc-hetmet.git] / rts / sm / BlockAlloc.c
index 8eaba72..f0f786b 100644 (file)
@@ -697,6 +697,8 @@ void returnMemoryToOS(nat n /* megablocks */)
     }
     free_mblock_list = bd;
 
+    osReleaseFreeMemory();
+
     IF_DEBUG(gc,
         if (n != 0) {
             debugBelch("Wanted to free %d more MBlocks than are freeable\n",