]> granicus.if.org Git - gc/commitdiff
Avoid 'Unexpected heap growth' in 64-bit multi-threaded gctest if n_tests=1
authorIvan Maidanski <ivmai@mail.ru>
Wed, 11 Apr 2018 06:19:09 +0000 (09:19 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 11 Apr 2018 06:19:09 +0000 (09:19 +0300)
* tests/test.c [!VERY_SMALL_CONFIG && CPP_WORDSZ==64] (check_heap_stats):
Increase max_heap_sz initial value by ~8.7% (so that the ratio of
max_heap_sz initial values between 32-bit and 64-bit targets
is the roughly same as exists for VERY_SMALL_CONFIG).

tests/test.c

index a05358fe9a6ac8ad5a2abd39e2b3333d92edbee6..64f8f3f6f4dae1be43a73a7ec822ef3b0734a66d 100644 (file)
@@ -1590,7 +1590,7 @@ void check_heap_stats(void)
 #     endif
 #   else
 #     if CPP_WORDSZ == 64
-        max_heap_sz = 23000000;
+        max_heap_sz = 25000000;
 #     else
         max_heap_sz = 16000000;
 #     endif