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: v7.6.2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76bddb607fc0c722fb12db927c6205c96b40ccbd;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 18c94821..828a3cd7 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