From: Ivan Maidanski Date: Thu, 23 Nov 2017 17:26:02 +0000 (+0300) Subject: Avoid 'Unexpected heap growth' fail if compiled by GCC with ASan (gctest) X-Git-Tag: v8.0.0~493 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f8885c325e66624eac3f08c12158ef1d24716c2;p=gc Avoid 'Unexpected heap growth' fail if compiled by GCC with ASan (gctest) * tests/test.c [ADDRESS_SANITIZER && !__clang__] (check_heap_stats): Multiply max_heap_sz by ~1.66. --- diff --git a/tests/test.c b/tests/test.c index 71a04b54..27dcc047 100644 --- a/tests/test.c +++ b/tests/test.c @@ -1608,6 +1608,9 @@ void check_heap_stats(void) # endif # endif # endif +# if defined(ADDRESS_SANITIZER) && !defined(__clang__) + max_heap_sz = max_heap_sz * 2 - max_heap_sz / 3; +# endif # ifdef MEMORY_SANITIZER max_heap_sz += max_heap_sz / 4; # endif