RFR(S): 8210990: [TESTBUG] Some CDS tests don't respect JVM variant being tested
Calvin Cheung
calvin.cheung at oracle.com
Sat Oct 20 00:38:22 UTC 2018
bug: https://bugs.openjdk.java.net/browse/JDK-8210990
webrev: http://cr.openjdk.java.net/~ccheung/8210990/webrev.00/
Some CDS tests use the CDSTestUtils.createArchive() when creating the
shared archive and use the CDSTestUtils.executeAndLog() when using the
archive. This results in some flag used when creating the archive not
being passed to the subsequent JVM which tries to load the archive and
resulting in error such as "The shared archive file was created by a
different version or build of HotSpot" while processing the archive. A
fix is to use the CDSTestUtils.run() instead of executeAndLog().
Sanity hs-tier{1,2,3] tested.
Also tested with special build with which the problem was reproduced.
thanks,
Calvin
More information about the hotspot-runtime-dev
mailing list