RFR(S): 8077608 - [TESTBUG] Enable Hotspot jtreg tests to run in agentvm mode
christian.tornqvist at oracle.com
Mon Apr 13 14:22:59 UTC 2015
Please review this small change which enables us to run the Hotspot jtreg
tests in agentvm mode. This change also sets JPRT to use this mode. Results
when running on my 32-thread Windows machine using a fastdebug build:
Othervm (this is what we run today): 4h5m
Agentvm (still without concurrency): 1h45m
The same speedup can be seen in JPRT across all platforms, I've tested these
changes 25-30 times in JPRT.
In order to make all the tests work correctly I had to make some small
Turns out that the CLASSPATH environment variable has a different value when
running with agentvm, it's now appending test.src and test.class.path when
creating child processes. This fixed about 40 of the failures.
Fails to clean out the sun.hotspot.WhiteBox.class on Windows machines, the
only reason for cleaning this file out is so that the other tests in
/test/sanity doesn't pick up the incorrect WhiteBox.class. Simple workaround
is to move the test/sanity/WhiteBox.java into its own directory to prevent
the other tests from picking up this class file.
Intermittent IO problems on Windows when reading the XML files, workaround
is to run this to keep running this test in othervm mode.
ClassNotFoundException when running in agentvm mode, didn't spend too much
time debugging this. Workaround is to keep running this test in othervm
More information about the hotspot-dev