]> granicus.if.org Git - gc/commitdiff
Prevent 'Unexpected heap growth' in single-threaded gctest (Linux/x64)
authorIvan Maidanski <ivmai@mail.ru>
Tue, 19 Dec 2017 07:22:15 +0000 (10:22 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 19 Dec 2017 07:22:15 +0000 (10:22 +0300)
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).

tests/test.c

index 8915b3b86d7342cf124d632ed251d37c2aadd673..bc24163ef81abef3f57502639f02316531136085 100644 (file)
@@ -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