# HG changeset patch # User Roland Schatz # Date 1401785542 -7200 # Node ID c60362c5150f5456469913c4af0a13efbdefea8a # Parent c55559b7824d44720e6f8f3041a8738c626b6fd5 mx: Use -XX:-DisableExplicitGC when running unit tests with --gc-after-test. diff -r c55559b7824d -r c60362c5150f mx/mx_graal.py --- a/mx/mx_graal.py Tue Jun 03 10:04:51 2014 +0200 +++ b/mx/mx_graal.py Tue Jun 03 10:52:22 2014 +0200 @@ -1002,6 +1002,8 @@ prefixArgs = ['-esa', '-ea'] else: prefixArgs = ['-XX:-BootstrapGraal', '-esa', '-ea'] + if gc_after_test: + prefixArgs.append('-XX:-DisableExplicitGC') with open(testfile) as fp: testclasses = [l.rstrip() for l in fp.readlines()] if len(testclasses) == 1: