8241009: CommandLineFlagComboNegative.java fails after JDK-8240563
Jtreg turned off UseCompressedOops and messed up vm flag options of children processes. Reviewed-by: dholmes, stefank
This commit is contained in:
parent
f67868d917
commit
37b7a23317
@ -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 class CommandLineFlagComboNegative {
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user