From: Ivan Maidanski Date: Tue, 19 Dec 2017 07:22:15 +0000 (+0300) Subject: Prevent 'Unexpected heap growth' in single-threaded gctest (Linux/x64) X-Git-Tag: v7.4.8~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b1f9641f921b7e563fbbf8019be53de4caa4d58;p=gc Prevent 'Unexpected heap growth' in single-threaded gctest (Linux/x64) Empirically, with incremental GC, the heap tends to grow largely as a result of the GC not getting enough cycles. * tests/test.c [!VERY_SMALL_CONFIG && CPP_WORDSZ==64] (check_heap_stats): Increase max_heap_sz by ~5% (to 24M). --- diff --git a/tests/test.c b/tests/test.c index 8915b3b8..bc24163e 100644 --- a/tests/test.c +++ b/tests/test.c @@ -1471,7 +1471,7 @@ void check_heap_stats(void) # endif # else # if CPP_WORDSZ == 64 - max_heap_sz = 23000000; + max_heap_sz = 24000000; # else max_heap_sz = 16000000; # endif