8228907: Some gc argument checking tests fail after JDK-8228855
authorcoleenp
Wed, 31 Jul 2019 17:30:25 -0400
changeset 57609 c717fd746de4
parent 57608 0d17da18142b
child 57610 eafa7a1e8d9b
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
test/hotspot/jtreg/gc/arguments/TestSurvivorAlignmentInBytesOption.java
test/hotspot/jtreg/gc/survivorAlignment/TestPromotionLABLargeSurvivorAlignment.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
--- 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
  */