Skip to content
Permalink
Browse files
8241009: CommandLineFlagComboNegative.java fails after JDK-8240563
Jtreg turned off UseCompressedOops and messed up vm flag options of children processes.

Reviewed-by: dholmes, stefank
  • Loading branch information
yminqi committed Mar 20, 2020
1 parent f67868d commit 37b7a2331759e38f916cb4bdca52d62d4a601721
Showing with 9 additions and 12 deletions.
  1. +9 −12 test/hotspot/jtreg/runtime/cds/appcds/CommandLineFlagComboNegative.java
@@ -29,7 +29,7 @@
* E.g. use compressed oops for creating and archive, but then
* execute w/o compressed oops
* @requires vm.cds
* @requires !vm.gc.Z
* @requires vm.bits == 64 & vm.opt.final.UseCompressedOops == true
* @library /test/lib
* @compile test-classes/Hello.java
* @run driver CommandLineFlagComboNegative
@@ -59,19 +59,16 @@ public TestVector(String testOptionForDumpStep, String testOptionForExecuteStep,
private ArrayList<TestVector> testTable = new ArrayList<TestVector>();

private void initTestTable() {
// These options are not applicable on 32-bit platforms
if (Platform.is64bit()) {
testTable.add( new TestVector("-XX:ObjectAlignmentInBytes=8", "-XX:ObjectAlignmentInBytes=16",
testTable.add( new TestVector("-XX:ObjectAlignmentInBytes=8", "-XX:ObjectAlignmentInBytes=16",
"An error has occurred while processing the shared archive file", 1) );
if (!TestCommon.isDynamicArchive()) {
testTable.add( new TestVector("-XX:ObjectAlignmentInBytes=64", "-XX:ObjectAlignmentInBytes=32",
"An error has occurred while processing the shared archive file", 1) );
if (!TestCommon.isDynamicArchive()) {
testTable.add( new TestVector("-XX:ObjectAlignmentInBytes=64", "-XX:ObjectAlignmentInBytes=32",
"An error has occurred while processing the shared archive file", 1) );
}
testTable.add( new TestVector("-XX:+UseCompressedOops", "-XX:-UseCompressedOops",
"The saved state of UseCompressedOops and UseCompressedClassPointers is different from runtime, CDS will be disabled.", 1) );
testTable.add( new TestVector("-XX:+UseCompressedClassPointers", "-XX:-UseCompressedClassPointers",
"The saved state of UseCompressedOops and UseCompressedClassPointers is different from runtime, CDS will be disabled.", 1) );
}
testTable.add( new TestVector("-XX:+UseCompressedOops", "-XX:-UseCompressedOops",
"The saved state of UseCompressedOops and UseCompressedClassPointers is different from runtime, CDS will be disabled.", 1) );
testTable.add( new TestVector("-XX:+UseCompressedClassPointers", "-XX:-UseCompressedClassPointers",
"The saved state of UseCompressedOops and UseCompressedClassPointers is different from runtime, CDS will be disabled.", 1) );
}

private void runTests() throws Exception

0 comments on commit 37b7a23

Please sign in to comment.