-
Enhancement
-
Resolution: Fixed
-
P4
-
12
-
b08
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. (See JDK-8210990)
The purpose of this RFE is to reduce the usage of CDSTestUtils.executeAndLog() by making use of CDSTestUtils.run(), CDSTestUtils.createArchiveAndCheck(), etc.
The CDSTestUtils.executeAndLog() will still be used in the following cases:
1. internally in CDSTestUtils;
2. test cases which use other java tools such as jcmd;
3. test cases which start java processes from a non-standard location.
The purpose of this RFE is to reduce the usage of CDSTestUtils.executeAndLog() by making use of CDSTestUtils.run(), CDSTestUtils.createArchiveAndCheck(), etc.
The CDSTestUtils.executeAndLog() will still be used in the following cases:
1. internally in CDSTestUtils;
2. test cases which use other java tools such as jcmd;
3. test cases which start java processes from a non-standard location.