Mercurial > hg > graal-jvmci-8
comparison mx/mx_graal.py @ 16002:c60362c5150f
mx: Use -XX:-DisableExplicitGC when running unit tests with --gc-after-test.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Tue, 03 Jun 2014 10:52:22 +0200 |
parents | d676c4beeab8 |
children | 3f350b0d93c9 |
comparison
equal
deleted
inserted
replaced
16001:c55559b7824d | 16002:c60362c5150f |
---|---|
1000 def harness(projectscp, vmArgs): | 1000 def harness(projectscp, vmArgs): |
1001 if _get_vm() != 'graal': | 1001 if _get_vm() != 'graal': |
1002 prefixArgs = ['-esa', '-ea'] | 1002 prefixArgs = ['-esa', '-ea'] |
1003 else: | 1003 else: |
1004 prefixArgs = ['-XX:-BootstrapGraal', '-esa', '-ea'] | 1004 prefixArgs = ['-XX:-BootstrapGraal', '-esa', '-ea'] |
1005 if gc_after_test: | |
1006 prefixArgs.append('-XX:-DisableExplicitGC') | |
1005 with open(testfile) as fp: | 1007 with open(testfile) as fp: |
1006 testclasses = [l.rstrip() for l in fp.readlines()] | 1008 testclasses = [l.rstrip() for l in fp.readlines()] |
1007 if len(testclasses) == 1: | 1009 if len(testclasses) == 1: |
1008 # Execute Junit directly when one test is being run. This simplifies | 1010 # Execute Junit directly when one test is being run. This simplifies |
1009 # replaying the VM execution in a native debugger (e.g., gdb). | 1011 # replaying the VM execution in a native debugger (e.g., gdb). |