Skip to content

Commit

Permalink
- try to improve on #3318 by giving memory back as much as possible t…
Browse files Browse the repository at this point in the history
…o the OS on Windows
  • Loading branch information
adrpo committed May 19, 2015
1 parent e2a2224 commit 0fa54dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Compiler/Main/Main.mo
Expand Up @@ -799,7 +799,7 @@ algorithm
// 150M for Windows, 300M for others makes the GC try to unmap less and so it crashes less.
// Disabling unmap is another alternative that seems to work well (but could cause the memory consumption to not be released, and requires manually calling collect and unmap
if true then
GC.setForceUnmapOnGcollect(false);
GC.setForceUnmapOnGcollect(if System.os() == "Windows_NT" then true else false);
else
GC.expandHeap(if System.os() == "Windows_NT"
then 1024*1024*150
Expand Down
2 changes: 1 addition & 1 deletion Makefile.omdev.mingw
Expand Up @@ -31,7 +31,7 @@ OPENCL = Yes
LINK = cp -rl
AR = ar
# LIBGC configuration is different for Windows (this file) and Linux (Makefile.in)
LIBGC_EXTRA_CONFIGURATION=--enable-threads=posix --enable-munmap=5 --disable-parallel-mark
LIBGC_EXTRA_CONFIGURATION=--enable-threads=posix --enable-munmap=1 --disable-parallel-mark
MSL321_CONFIG_EXTRA_FLAGS=--enable-static --disable-shared
LIBFMILIB=libfmilib.a
LIBCMINPACKLIB=libcminpack.a
Expand Down

0 comments on commit 0fa54dd

Please sign in to comment.