From 0bb18d1821183b08079e8cff03498454ff0b36f1 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 10 Feb 2017 09:22:28 +0100 Subject: introduce nimMaxHeap define to fight memory overcommit --- tools/nimsuggest/nimsuggest.nim.cfg | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/nimsuggest/nimsuggest.nim.cfg') diff --git a/tools/nimsuggest/nimsuggest.nim.cfg b/tools/nimsuggest/nimsuggest.nim.cfg index 949bd18e8..6525a206a 100644 --- a/tools/nimsuggest/nimsuggest.nim.cfg +++ b/tools/nimsuggest/nimsuggest.nim.cfg @@ -8,6 +8,12 @@ path:"$lib/packages/docutils" define:useStdoutAsStdmsg define:nimsuggest +# die when nimsuggest uses more than 4GB: +@if cpu32: + define:"nimMaxHeap=2000" +@else: + define:"nimMaxHeap=4000" +@end #cs:partial #define:useNodeIds -- cgit 1.4.1-2-gfad0