# HG changeset patch # User coleenp # Date 1564608625 14400 # Node ID c717fd746de4815acf0b3ecd39b4e043b1125be7 # Parent 0d17da18142be21a85ad4d1a9ca46f25ad7177bf 8228907: Some gc argument checking tests fail after JDK-8228855 Summary: Use new SurvivorAlignmentInBytes range in tests, remove test cases that verify unnecessarily large values. Reviewed-by: kbarrett, dcubed, dholmes diff -r 0d17da18142b -r c717fd746de4 test/hotspot/jtreg/gc/arguments/TestSurvivorAlignmentInBytesOption.java --- a/test/hotspot/jtreg/gc/arguments/TestSurvivorAlignmentInBytesOption.java Mon Jul 29 16:31:09 2019 +0530 +++ b/test/hotspot/jtreg/gc/arguments/TestSurvivorAlignmentInBytesOption.java Wed Jul 31 17:30:25 2019 -0400 @@ -94,7 +94,8 @@ ExitCode.FAIL, false, CommandLineOptionTest.prepareBooleanFlag( unlockExperimentalVMOpts, true), - CommandLineOptionTest.prepareNumericFlag(optionName, 2)); + CommandLineOptionTest.prepareNumericFlag(optionName, 8), + CommandLineOptionTest.prepareNumericFlag("ObjectAlignmentInBytes", 16)); // Verify that if specified SurvivorAlignmentInBytes value is not // a power of 2 then the JVM startup will fail with appropriate error diff -r 0d17da18142b -r c717fd746de4 test/hotspot/jtreg/gc/survivorAlignment/TestPromotionLABLargeSurvivorAlignment.java --- a/test/hotspot/jtreg/gc/survivorAlignment/TestPromotionLABLargeSurvivorAlignment.java Mon Jul 29 16:31:09 2019 +0530 +++ b/test/hotspot/jtreg/gc/survivorAlignment/TestPromotionLABLargeSurvivorAlignment.java Wed Jul 31 17:30:25 2019 -0400 @@ -41,22 +41,7 @@ * gc.survivorAlignment.TestPromotionLABLargeSurvivorAlignment * @run main/othervm -Xmx128m * -XX:+UnlockExperimentalVMOptions - * -XX:SurvivorAlignmentInBytes=512 -XX:SurvivorRatio=1 - * -XX:-ExplicitGCInvokesConcurrent -XX:-ResizePLAB - * gc.survivorAlignment.TestPromotionLABLargeSurvivorAlignment - * @run main/othervm -Xmx128m - * -XX:+UnlockExperimentalVMOptions - * -XX:SurvivorAlignmentInBytes=1k -XX:SurvivorRatio=1 - * -XX:-ExplicitGCInvokesConcurrent -XX:-ResizePLAB - * gc.survivorAlignment.TestPromotionLABLargeSurvivorAlignment - * @run main/othervm -Xmx128m - * -XX:+UnlockExperimentalVMOptions - * -XX:SurvivorAlignmentInBytes=4k -XX:SurvivorRatio=1 - * -XX:-ExplicitGCInvokesConcurrent -XX:-ResizePLAB - * gc.survivorAlignment.TestPromotionLABLargeSurvivorAlignment - * @run main/othervm -Xmx128m - * -XX:+UnlockExperimentalVMOptions - * -XX:SurvivorAlignmentInBytes=16k -XX:SurvivorRatio=1 + * -XX:SurvivorAlignmentInBytes=256 -XX:SurvivorRatio=1 * -XX:-ExplicitGCInvokesConcurrent -XX:-ResizePLAB * gc.survivorAlignment.TestPromotionLABLargeSurvivorAlignment */