[11] RFR (M) 8202611: [GRAAL] Exclude CMS GC testing from runs with Graal

Vladimir Kozlov vladimir.kozlov at oracle.com
Mon May 7 18:33:01 UTC 2018


http://cr.openjdk.java.net/~kvn/8202611/webrev.00/
https://bugs.openjdk.java.net/browse/JDK-8202611

JDK-8184349 handles Hotspot changes to add check that Graal support GC 
and exit on error if it does not.
Since tests changes are big I decided to do it separate and may be push 
first.

These changes excluded tests which use CMS from Graal runs.

@requires !vm.graal.enabled  was added for tests which use only CMS GC 
explicitly.

Undocumented jtreg functionality is use to split @run command with 
-XX:+UseConcMarkSweepGC into separate jtreg comment block if test has 
several @run commands. Jtreg treats such test as 2 tests.

New test API sun/hotspot/code/Compiler.java (which uses WhiteBox API) is 
added to check if particular JIT compiler is enabled. The Graal related 
code was copied from VMProps.java.
This was added for cases when a test forks new process and use CMS GC. 
New API is used to guard such code to not run with Graal.

Tested with Graal enabled as JIT.

-- 
Thanks,
Vladimir


More information about the hotspot-dev mailing list