--- old/src/jdk.internal.vm.compiler/.mx.graal/sanitycheck.py 2019-12-13 21:01:19.560595398 +0100 +++ new/src/jdk.internal.vm.compiler/.mx.graal/sanitycheck.py 2019-12-13 21:01:19.281734888 +0100 @@ -173,7 +173,7 @@ matcherCritical = ValuesMatcher(jops, {'group' : 'SPECjbb2013', 'name' : 'critical', 'score' : ''}) return Test("SPECjbb2013", ['-jar', 'specjbb2013.jar', '-m', 'composite'] + _noneAsEmptyList(benchArgs), [success], [], [matcherCritical, matcherMax], - vmOpts=['-Xmx6g', '-Xms6g', '-Xmn3g', '-XX:+UseParallelOldGC', '-XX:-UseAdaptiveSizePolicy', '-XX:-UseBiasedLocking', '-XX:-UseCompressedOops'], defaultCwd=specjbb2013) + vmOpts=['-Xmx6g', '-Xms6g', '-Xmn3g', '-XX:+UseParallelGC', '-XX:-UseAdaptiveSizePolicy', '-XX:-UseBiasedLocking', '-XX:-UseCompressedOops'], defaultCwd=specjbb2013) def getSPECjbb2015(benchArgs=None): @@ -188,7 +188,7 @@ matcherCritical = ValuesMatcher(jops, {'group' : 'SPECjbb2015', 'name' : 'critical', 'score' : ''}) return Test("SPECjbb2015", ['-jar', 'specjbb2015.jar', '-m', 'composite'] + _noneAsEmptyList(benchArgs), [success], [], [matcherCritical, matcherMax], - vmOpts=['-Xmx6g', '-Xms6g', '-Xmn3g', '-XX:+UseParallelOldGC', '-XX:-UseAdaptiveSizePolicy', '-XX:-UseBiasedLocking', '-XX:-UseCompressedOops'], defaultCwd=specjbb2015) + vmOpts=['-Xmx6g', '-Xms6g', '-Xmn3g', '-XX:+UseParallelGC', '-XX:-UseAdaptiveSizePolicy', '-XX:-UseBiasedLocking', '-XX:-UseCompressedOops'], defaultCwd=specjbb2015) def getSPECjvm2008(benchArgs=None): --- old/test/hotspot/jtreg/gc/TestSystemGC.java 2019-12-13 21:01:20.239255923 +0100 +++ new/test/hotspot/jtreg/gc/TestSystemGC.java 2019-12-13 21:01:19.945402912 +0100 @@ -37,7 +37,6 @@ * @requires vm.gc.Parallel * @summary Runs System.gc() with different flags. * @run main/othervm -XX:+UseParallelGC gc.TestSystemGC - * @run main/othervm -XX:+UseParallelGC -XX:-UseParallelOldGC gc.TestSystemGC */ /* --- old/test/hotspot/jtreg/gc/arguments/TestAlignmentToUseLargePages.java 2019-12-13 21:01:20.876936946 +0100 +++ new/test/hotspot/jtreg/gc/arguments/TestAlignmentToUseLargePages.java 2019-12-13 21:01:20.578086435 +0100 @@ -38,10 +38,8 @@ * @summary All parallel GC variants may use large pages without the requirement that the heap alignment is large page aligned. Other collectors also need to start up with odd sized heaps. * @bug 8024396 * @requires vm.gc.Parallel - * @run main/othervm -Xms71M -Xmx91M -XX:+UseParallelGC -XX:-UseParallelOldGC -XX:+UseLargePages gc.arguments.TestAlignmentToUseLargePages - * @run main/othervm -Xms71M -Xmx91M -XX:+UseParallelGC -XX:-UseParallelOldGC -XX:-UseLargePages gc.arguments.TestAlignmentToUseLargePages - * @run main/othervm -Xms71M -Xmx91M -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:+UseLargePages gc.arguments.TestAlignmentToUseLargePages - * @run main/othervm -Xms71M -Xmx91M -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:-UseLargePages gc.arguments.TestAlignmentToUseLargePages + * @run main/othervm -Xms71M -Xmx91M -XX:+UseParallelGC -XX:+UseLargePages gc.arguments.TestAlignmentToUseLargePages + * @run main/othervm -Xms71M -Xmx91M -XX:+UseParallelGC -XX:-UseLargePages gc.arguments.TestAlignmentToUseLargePages */ /** --- old/test/hotspot/jtreg/gc/arguments/TestParallelHeapSizeFlags.java 2019-12-13 21:01:21.534607970 +0100 +++ new/test/hotspot/jtreg/gc/arguments/TestParallelHeapSizeFlags.java 2019-12-13 21:01:21.248750959 +0100 @@ -44,9 +44,7 @@ public class TestParallelHeapSizeFlags { public static void main(String args[]) throws Exception { - // just pick one of the parallel generational collectors. Sizing logic is the - // same. - final String gcName = "-XX:+UseParallelOldGC"; + final String gcName = "-XX:+UseParallelGC"; TestMaxHeapSizeTools.checkMinInitialMaxHeapFlags(gcName); --- old/test/hotspot/jtreg/gc/arguments/TestUseCompressedOopsErgo.java 2019-12-13 21:01:22.178285993 +0100 +++ new/test/hotspot/jtreg/gc/arguments/TestUseCompressedOopsErgo.java 2019-12-13 21:01:21.893428483 +0100 @@ -53,7 +53,6 @@ * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission * @run main/othervm gc.arguments.TestUseCompressedOopsErgo -XX:+UseParallelGC - * @run main/othervm gc.arguments.TestUseCompressedOopsErgo -XX:+UseParallelGC -XX:-UseParallelOldGC */ /* --- old/test/hotspot/jtreg/gc/metaspace/TestMetaspacePerfCounters.java 2019-12-13 21:01:22.828960516 +0100 +++ new/test/hotspot/jtreg/gc/metaspace/TestMetaspacePerfCounters.java 2019-12-13 21:01:22.559095507 +0100 @@ -61,8 +61,8 @@ * java.compiler * java.management/sun.management * jdk.internal.jvmstat/sun.jvmstat.monitor - * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -XX:+UsePerfData -XX:+UseParallelGC -XX:+UseParallelOldGC gc.metaspace.TestMetaspacePerfCounters - * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:+UsePerfData -XX:+UseParallelGC -XX:+UseParallelOldGC gc.metaspace.TestMetaspacePerfCounters + * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -XX:+UsePerfData -XX:+UseParallelGC gc.metaspace.TestMetaspacePerfCounters + * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:+UsePerfData -XX:+UseParallelGC gc.metaspace.TestMetaspacePerfCounters */ /* @test TestMetaspacePerfCountersG1 --- old/test/hotspot/jtreg/gc/nvdimm/TestAllocateOldGenAt.java 2019-12-13 21:01:23.484632540 +0100 +++ new/test/hotspot/jtreg/gc/nvdimm/TestAllocateOldGenAt.java 2019-12-13 21:01:23.193778030 +0100 @@ -58,8 +58,8 @@ "-version"}); runTest("-XX:+UseG1GC"); - runTest("-XX:+UseParallelOldGC -XX:-UseAdaptiveGCBoundary"); - runTest("-XX:+UseParallelOldGC -XX:+UseAdaptiveGCBoundary"); + runTest("-XX:+UseParallelGC -XX:-UseAdaptiveGCBoundary"); + runTest("-XX:+UseParallelGC -XX:+UseAdaptiveGCBoundary"); } private static void runTest(String... extraFlags) throws Exception { --- old/test/hotspot/jtreg/gc/nvdimm/TestAllocateOldGenAtError.java 2019-12-13 21:01:24.164292565 +0100 +++ new/test/hotspot/jtreg/gc/nvdimm/TestAllocateOldGenAtError.java 2019-12-13 21:01:23.867441054 +0100 @@ -82,13 +82,13 @@ } private static void testParallelOld() throws Exception { - System.out.println("Testing ParallelOld GC with UseAdaptiveGCBoundary disabled"); - OutputAnalyzer output = runTest("-XX:+UseParallelOldGC -XX:-UseAdaptiveGCBoundary"); + System.out.println("Testing Parallel GC with UseAdaptiveGCBoundary disabled"); + OutputAnalyzer output = runTest("-XX:+UseParallelGC -XX:-UseAdaptiveGCBoundary"); output.shouldContain("Error occurred during initialization of VM"); output.shouldNotHaveExitValue(0); - System.out.println("Testing ParallelOld GC with UseAdaptiveGCBoundary enabled"); - output = runTest("-XX:+UseParallelOldGC -XX:+UseAdaptiveGCBoundary"); + System.out.println("Testing Parallel GC with UseAdaptiveGCBoundary enabled"); + output = runTest("-XX:+UseParallelGC -XX:+UseAdaptiveGCBoundary"); output.shouldContain("Error occurred during initialization of VM"); output.shouldNotHaveExitValue(0); } --- old/test/hotspot/jtreg/gc/nvdimm/TestOldObjectsOnNvdimm.java 2019-12-13 21:01:24.786981087 +0100 +++ new/test/hotspot/jtreg/gc/nvdimm/TestOldObjectsOnNvdimm.java 2019-12-13 21:01:24.513118078 +0100 @@ -75,8 +75,8 @@ // Test with G1 GC runTest("-XX:+UseG1GC"); // Test with ParallelOld GC - runTest("-XX:+UseParallelOldGC -XX:-UseAdaptiveGCBoundary"); - runTest("-XX:+UseParallelOldGC -XX:+UseAdaptiveGCBoundary"); + runTest("-XX:+UseParallelGC -XX:-UseAdaptiveGCBoundary"); + runTest("-XX:+UseParallelGC -XX:+UseAdaptiveGCBoundary"); } private static void runTest(String... extraFlags) throws Exception { --- old/test/hotspot/jtreg/gc/nvdimm/TestYoungObjectsOnDram.java 2019-12-13 21:01:25.425661611 +0100 +++ new/test/hotspot/jtreg/gc/nvdimm/TestYoungObjectsOnDram.java 2019-12-13 21:01:25.151798601 +0100 @@ -76,8 +76,8 @@ // Test with G1 GC runTest("-XX:+UseG1GC"); // Test with ParallelOld GC - runTest("-XX:+UseParallelOldGC -XX:-UseAdaptiveGCBoundary"); - runTest("-XX:+UseParallelOldGC -XX:+UseAdaptiveGCBoundary"); + runTest("-XX:+UseParallelGC -XX:-UseAdaptiveGCBoundary"); + runTest("-XX:+UseParallelGC -XX:+UseAdaptiveGCBoundary"); } private static void runTest(String... extraFlags) throws Exception { --- old/test/hotspot/jtreg/gc/stress/TestReclaimStringsLeaksMemory.java 2019-12-13 21:01:26.073337634 +0100 +++ new/test/hotspot/jtreg/gc/stress/TestReclaimStringsLeaksMemory.java 2019-12-13 21:01:25.783482624 +0100 @@ -34,7 +34,6 @@ * @run main/othervm gc.stress.TestReclaimStringsLeaksMemory * @run main/othervm gc.stress.TestReclaimStringsLeaksMemory -XX:+UseSerialGC * @run main/othervm gc.stress.TestReclaimStringsLeaksMemory -XX:+UseParallelGC - * @run main/othervm gc.stress.TestReclaimStringsLeaksMemory -XX:+UseParallelGC -XX:-UseParallelOldGC * @run main/othervm gc.stress.TestReclaimStringsLeaksMemory -XX:+UseG1GC */ --- old/test/hotspot/jtreg/gc/stress/gcold/TestGCOldWithParallel.java 2019-12-13 21:01:26.740004158 +0100 +++ new/test/hotspot/jtreg/gc/stress/gcold/TestGCOldWithParallel.java 2019-12-13 21:01:26.448150148 +0100 @@ -31,7 +31,6 @@ * @requires vm.gc.Parallel * @summary Stress the Parallel GC by trying to make old objects more likely to be garbage than young objects. * @run main/othervm -Xmx384M -XX:+UseParallelGC gc.stress.gcold.TestGCOld 50 1 20 10 10000 - * @run main/othervm -Xmx384M -XX:+UseParallelGC -XX:-UseParallelOldGC gc.stress.gcold.TestGCOld 50 1 20 10 10000 */ public class TestGCOldWithParallel { public static void main(String[] args) { --- old/test/hotspot/jtreg/runtime/CompressedOops/UseCompressedOops.java 2019-12-13 21:01:27.405671182 +0100 +++ new/test/hotspot/jtreg/runtime/CompressedOops/UseCompressedOops.java 2019-12-13 21:01:27.114816672 +0100 @@ -60,7 +60,6 @@ testCompressedOopsModes(args, "-XX:+UseG1GC"); testCompressedOopsModes(args, "-XX:+UseSerialGC"); testCompressedOopsModes(args, "-XX:+UseParallelGC"); - testCompressedOopsModes(args, "-XX:+UseParallelOldGC"); if (GC.Shenandoah.isSupported()) { testCompressedOopsModes(args, "-XX:+UnlockExperimentalVMOptions", "-XX:+UseShenandoahGC"); } --- old/test/jdk/jdk/jfr/event/gc/collection/TestGCCauseWithParallelOld.java 2019-12-13 21:01:28.064341706 +0100 +++ new/test/jdk/jdk/jfr/event/gc/collection/TestGCCauseWithParallelOld.java 2019-12-13 21:01:27.765491195 +0100 @@ -39,7 +39,7 @@ public class TestGCCauseWithParallelOld { public static void main(String[] args) throws Exception { String testID = "ParallelOld"; - String[] vmFlags = {"-XX:+UseParallelGC", "-XX:+UseParallelOldGC"}; + String[] vmFlags = {"-XX:+UseParallelGC"}; String[] gcNames = {GCHelper.gcParallelScavenge, GCHelper.gcParallelOld}; String[] gcCauses = {"Allocation Failure", "Ergonomics", "System.gc()"}; GCGarbageCollectionUtil.test(testID, vmFlags, gcNames, gcCauses); --- old/test/jdk/jdk/jfr/event/gc/collection/TestGCEventMixedWithParallelOld.java 2019-12-13 21:01:28.724011730 +0100 +++ new/test/jdk/jdk/jfr/event/gc/collection/TestGCEventMixedWithParallelOld.java 2019-12-13 21:01:28.437155220 +0100 @@ -32,7 +32,7 @@ * * @requires vm.gc == "Parallel" | vm.gc == null * @library /test/lib /test/jdk - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -Xmx32m -Xmn8m -XX:+UseParallelGC -XX:+UseParallelOldGC jdk.jfr.event.gc.collection.TestGCEventMixedWithParallelOld + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -Xmx32m -Xmn8m -XX:+UseParallelGC jdk.jfr.event.gc.collection.TestGCEventMixedWithParallelOld * good debug flags: -Xlog:gc*=debug */ public class TestGCEventMixedWithParallelOld { --- old/test/jdk/jdk/jfr/event/gc/collection/TestGCWithFasttime.java 2019-12-13 21:01:29.384681254 +0100 +++ new/test/jdk/jdk/jfr/event/gc/collection/TestGCWithFasttime.java 2019-12-13 21:01:29.102822244 +0100 @@ -39,7 +39,7 @@ * @requires vm.hasJFR * @requires vm.gc == "Parallel" | vm.gc == null * @library /test/lib /test/jdk - * @run main/othervm -XX:+UseParallelGC -XX:+UseParallelOldGC jdk.jfr.event.gc.collection.TestGCWithFasttime + * @run main/othervm -XX:+UseParallelGC jdk.jfr.event.gc.collection.TestGCWithFasttime */ public class TestGCWithFasttime { private static final String EVENT_NAME = GCHelper.event_garbage_collection; --- old/test/jdk/jdk/jfr/event/gc/configuration/TestGCConfigurationEvent.java 2019-12-13 21:01:30.041352778 +0100 +++ new/test/jdk/jdk/jfr/event/gc/configuration/TestGCConfigurationEvent.java 2019-12-13 21:01:29.742502267 +0100 @@ -42,7 +42,7 @@ * @requires (vm.gc == "Parallel" | vm.gc == null) * & vm.opt.ExplicitGCInvokesConcurrent != true * @library /test/lib /test/jdk - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:ParallelGCThreads=3 -XX:ConcGCThreads=2 -XX:+UseDynamicNumberOfGCThreads -XX:-ExplicitGCInvokesConcurrent -XX:-DisableExplicitGC -XX:MaxGCPauseMillis=800 -XX:GCTimeRatio=19 jdk.jfr.event.gc.configuration.TestGCConfigurationEvent + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -XX:+UseParallelGC -XX:ParallelGCThreads=3 -XX:ConcGCThreads=2 -XX:+UseDynamicNumberOfGCThreads -XX:-ExplicitGCInvokesConcurrent -XX:-DisableExplicitGC -XX:MaxGCPauseMillis=800 -XX:GCTimeRatio=19 jdk.jfr.event.gc.configuration.TestGCConfigurationEvent */ public class TestGCConfigurationEvent { public static void main(String[] args) throws Exception { --- old/test/jdk/jdk/jfr/event/gc/configuration/TestGCHeapConfigurationEventWith32BitOops.java 2019-12-13 21:01:30.690028302 +0100 +++ new/test/jdk/jdk/jfr/event/gc/configuration/TestGCHeapConfigurationEventWith32BitOops.java 2019-12-13 21:01:30.396175291 +0100 @@ -40,7 +40,7 @@ * @library /test/lib /test/jdk * @build sun.hotspot.WhiteBox * @run main ClassFileInstaller sun.hotspot.WhiteBox - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:+UseCompressedOops -Xmx100m -Xms100m -XX:InitialHeapSize=100m -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI jdk.jfr.event.gc.configuration.TestGCHeapConfigurationEventWith32BitOops + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -XX:+UseParallelGC -XX:+UseCompressedOops -Xmx100m -Xms100m -XX:InitialHeapSize=100m -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI jdk.jfr.event.gc.configuration.TestGCHeapConfigurationEventWith32BitOops */ --- old/test/jdk/jdk/jfr/event/gc/configuration/TestGCHeapConfigurationEventWithHeapBasedOops.java 2019-12-13 21:01:31.332706825 +0100 +++ new/test/jdk/jdk/jfr/event/gc/configuration/TestGCHeapConfigurationEventWithHeapBasedOops.java 2019-12-13 21:01:31.033856314 +0100 @@ -38,7 +38,7 @@ * @library /test/lib /test/jdk * @build sun.hotspot.WhiteBox * @run main ClassFileInstaller sun.hotspot.WhiteBox - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:+UseCompressedOops -Xmx31g jdk.jfr.event.gc.configuration.TestGCHeapConfigurationEventWithHeapBasedOops + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -XX:+UseParallelGC -XX:+UseCompressedOops -Xmx31g jdk.jfr.event.gc.configuration.TestGCHeapConfigurationEventWithHeapBasedOops */ /* See the shell script wrapper for the flags used when invoking the JVM */ --- old/test/jdk/jdk/jfr/event/gc/configuration/TestGCHeapConfigurationEventWithZeroBasedOops.java 2019-12-13 21:01:31.993376349 +0100 +++ new/test/jdk/jdk/jfr/event/gc/configuration/TestGCHeapConfigurationEventWithZeroBasedOops.java 2019-12-13 21:01:31.689528338 +0100 @@ -36,7 +36,7 @@ * @requires os.family == "linux" | os.family == "windows" * @requires sun.arch.data.model == "64" * @library /test/lib /test/jdk - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:+UseCompressedOops -Xmx4g jdk.jfr.event.gc.configuration.TestGCHeapConfigurationEventWithZeroBasedOops + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -XX:+UseParallelGC -XX:+UseCompressedOops -Xmx4g jdk.jfr.event.gc.configuration.TestGCHeapConfigurationEventWithZeroBasedOops */ /* See the shell script wrapper for the flags used when invoking the JVM */ --- old/test/jdk/jdk/jfr/event/gc/configuration/TestGCSurvivorConfigurationEvent.java 2019-12-13 21:01:32.660042873 +0100 +++ new/test/jdk/jdk/jfr/event/gc/configuration/TestGCSurvivorConfigurationEvent.java 2019-12-13 21:01:32.363191362 +0100 @@ -41,7 +41,7 @@ * @requires vm.hasJFR * @requires vm.gc == "Parallel" | vm.gc == null * @library /test/lib /test/jdk - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:MaxTenuringThreshold=13 -XX:InitialTenuringThreshold=9 jdk.jfr.event.gc.configuration.TestGCSurvivorConfigurationEvent + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -XX:+UseParallelGC -XX:MaxTenuringThreshold=13 -XX:InitialTenuringThreshold=9 jdk.jfr.event.gc.configuration.TestGCSurvivorConfigurationEvent */ public class TestGCSurvivorConfigurationEvent { public static void main(String[] args) throws Exception { --- old/test/jdk/jdk/jfr/event/gc/configuration/TestGCTLABConfigurationEvent.java 2019-12-13 21:01:33.290727396 +0100 +++ new/test/jdk/jdk/jfr/event/gc/configuration/TestGCTLABConfigurationEvent.java 2019-12-13 21:01:33.000872385 +0100 @@ -41,7 +41,7 @@ * @requires vm.hasJFR * @requires vm.gc == "Parallel" | vm.gc == null * @library /test/lib /test/jdk - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:+UseTLAB -XX:MinTLABSize=3k -XX:TLABRefillWasteFraction=96 jdk.jfr.event.gc.configuration.TestGCTLABConfigurationEvent + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -XX:+UseParallelGC -XX:+UseTLAB -XX:MinTLABSize=3k -XX:TLABRefillWasteFraction=96 jdk.jfr.event.gc.configuration.TestGCTLABConfigurationEvent */ public class TestGCTLABConfigurationEvent { public static void main(String[] args) throws Exception { --- old/test/jdk/jdk/jfr/event/gc/detailed/TestPromotionEventWithParallelScavenge.java 2019-12-13 21:01:33.946399420 +0100 +++ new/test/jdk/jdk/jfr/event/gc/detailed/TestPromotionEventWithParallelScavenge.java 2019-12-13 21:01:33.660542409 +0100 @@ -32,7 +32,7 @@ * * @requires vm.gc == "Parallel" | vm.gc == null * @library /test/lib /test/jdk - * @run main/othervm -Xmx32m -Xms32m -Xmn12m -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:MaxTenuringThreshold=5 -XX:InitialTenuringThreshold=5 jdk.jfr.event.gc.detailed.TestPromotionEventWithParallelScavenge + * @run main/othervm -Xmx32m -Xms32m -Xmn12m -XX:+UseParallelGC -XX:MaxTenuringThreshold=5 -XX:InitialTenuringThreshold=5 jdk.jfr.event.gc.detailed.TestPromotionEventWithParallelScavenge */ public class TestPromotionEventWithParallelScavenge { --- old/test/jdk/jdk/jfr/event/gc/objectcount/TestObjectCountAfterGCEventWithParallelOld.java 2019-12-13 21:01:34.606069444 +0100 +++ new/test/jdk/jdk/jfr/event/gc/objectcount/TestObjectCountAfterGCEventWithParallelOld.java 2019-12-13 21:01:34.322211433 +0100 @@ -32,7 +32,7 @@ * @requires vm.hasJFR * @requires vm.gc == "Parallel" | vm.gc == null * @library /test/lib /test/jdk - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:MarkSweepDeadRatio=0 -XX:-UseCompressedOops -XX:+IgnoreUnrecognizedVMOptions jdk.jfr.event.gc.objectcount.TestObjectCountAfterGCEventWithParallelOld + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -XX:+UseParallelGC -XX:MarkSweepDeadRatio=0 -XX:-UseCompressedOops -XX:+IgnoreUnrecognizedVMOptions jdk.jfr.event.gc.objectcount.TestObjectCountAfterGCEventWithParallelOld */ public class TestObjectCountAfterGCEventWithParallelOld { public static void main(String[] args) throws Exception { --- old/test/jdk/jdk/jfr/event/gc/refstat/TestRefStatEventWithParallelOld.java 2019-12-13 21:01:35.258742967 +0100 +++ new/test/jdk/jdk/jfr/event/gc/refstat/TestRefStatEventWithParallelOld.java 2019-12-13 21:01:34.955894456 +0100 @@ -32,7 +32,7 @@ * @requires vm.hasJFR * @requires vm.gc == "Parallel" | vm.gc == null * @library /test/lib /test/jdk - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -Xlog:gc+heap=trace,gc*=debug -XX:+UseParallelGC -XX:+UseParallelOldGC jdk.jfr.event.gc.refstat.TestRefStatEventWithParallelOld + * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -Xlog:gc+heap=trace,gc*=debug -XX:+UseParallelGC jdk.jfr.event.gc.refstat.TestRefStatEventWithParallelOld */ public class TestRefStatEventWithParallelOld { public static void main(String[] args) throws Exception { --- old/test/jdk/jdk/jfr/event/gc/collection/TestGCCauseWithPSMarkSweep.java 2019-12-13 21:01:35.943400492 +0100 +++ /dev/null 2019-12-13 13:09:32.067000000 +0100 @@ -1,49 +0,0 @@ -/* - * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package jdk.jfr.event.gc.collection; -import jdk.test.lib.jfr.GCHelper; - -/** - * @test - * @key jfr - * @requires vm.hasJFR - * - * @requires vm.gc == "Parallel" | vm.gc == null - * @library /test/lib /test/jdk - * - * @run driver jdk.jfr.event.gc.collection.TestGCCauseWithPSMarkSweep - */ -public class TestGCCauseWithPSMarkSweep { - public static void main(String[] args) throws Exception { - String testID = "PSMarkSweep"; - String[] vmFlags = {"-XX:+UseParallelGC", "-XX:-UseParallelOldGC"}; - String[] gcNames = {GCHelper.gcParallelScavenge, GCHelper.gcSerialOld}; - String[] gcCauses = {"Allocation Failure", "Ergonomics", "System.gc()"}; - GCGarbageCollectionUtil.test(testID, vmFlags, gcNames, gcCauses); - } -} - - --- old/test/jdk/jdk/jfr/event/gc/collection/TestGCEventMixedWithPSMarkSweep.java 2019-12-13 21:01:36.432156010 +0100 +++ /dev/null 2019-12-13 13:09:32.067000000 +0100 @@ -1,42 +0,0 @@ -/* - * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package jdk.jfr.event.gc.collection; - -/** - * @test - * @key jfr - * @requires vm.hasJFR - * - * @requires vm.gc == "Parallel" | vm.gc == null - * @library /test/lib /test/jdk - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -Xmx32m -Xmn8m -XX:+UseParallelGC -XX:-UseParallelOldGC jdk.jfr.event.gc.collection.TestGCEventMixedWithPSMarkSweep - * good debug flags: -Xlog:gc*=debug - */ -public class TestGCEventMixedWithPSMarkSweep { - public static void main(String[] args) throws Throwable { - GCEventAll.doTest(); - } -} --- old/test/jdk/jdk/jfr/event/gc/heapsummary/TestHeapSummaryEventPSSerial.java 2019-12-13 21:01:36.953895029 +0100 +++ /dev/null 2019-12-13 13:09:32.067000000 +0100 @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package jdk.jfr.event.gc.heapsummary; -import jdk.test.lib.jfr.GCHelper; - -/** - * @test - * @key jfr - * @requires vm.hasJFR - * @requires vm.gc == "Parallel" | vm.gc == null - * @library /test/lib /test/jdk - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -XX:-UseParallelOldGC -XX:+UseParallelGC jdk.jfr.event.gc.heapsummary.TestHeapSummaryEventPSSerial - */ -public class TestHeapSummaryEventPSSerial { - public static void main(String[] args) throws Exception { - HeapSummaryEventAllGcs.test(GCHelper.gcParallelScavenge, GCHelper.gcSerialOld); - } -} --- old/test/jdk/jdk/jfr/event/gc/objectcount/TestObjectCountAfterGCEventWithPSMarkSweep.java 2019-12-13 21:01:37.460641547 +0100 +++ /dev/null 2019-12-13 13:09:32.067000000 +0100 @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package jdk.jfr.event.gc.objectcount; -import jdk.test.lib.jfr.GCHelper; - -/** - * @test - * @key jfr - * @requires vm.hasJFR - * @requires vm.gc == "Parallel" | vm.gc == null - * @library /test/lib /test/jdk - * @run main/othervm -XX:+UseParallelGC -XX:-UseParallelOldGC -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -XX:MarkSweepDeadRatio=0 -XX:-UseCompressedOops -XX:+IgnoreUnrecognizedVMOptions jdk.jfr.event.gc.objectcount.TestObjectCountAfterGCEventWithPSMarkSweep - */ -public class TestObjectCountAfterGCEventWithPSMarkSweep { - public static void main(String[] args) throws Exception { - ObjectCountAfterGCEvent.test(GCHelper.gcSerialOld); - } -} --- old/test/jdk/jdk/jfr/event/gc/refstat/TestRefStatEventWithPSMarkSweep.java 2019-12-13 21:01:37.945399065 +0100 +++ /dev/null 2019-12-13 13:09:32.067000000 +0100 @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package jdk.jfr.event.gc.refstat; -import jdk.test.lib.jfr.GCHelper; - -/** - * @test - * @key jfr - * @requires vm.hasJFR - * @requires vm.gc == "Parallel" | vm.gc == null - * @library /test/lib /test/jdk - * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-UseFastUnorderedTimeStamps -Xlog:gc+heap=trace,gc*=debug -XX:+UseParallelGC -XX:-UseParallelOldGC jdk.jfr.event.gc.refstat.TestRefStatEventWithPSMarkSweep - */ -public class TestRefStatEventWithPSMarkSweep { - public static void main(String[] args) throws Exception { - RefStatEvent.test(GCHelper.gcSerialOld); - } -} --- old/test/jdk/jdk/jfr/event/oldobject/TestParallelOld.java 2019-12-13 21:01:38.444149583 +0100 +++ /dev/null 2019-12-13 13:09:32.067000000 +0100 @@ -1,78 +0,0 @@ -/* - * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package jdk.jfr.event.oldobject; - -import java.util.ArrayList; -import java.util.List; - -import jdk.jfr.Recording; -import jdk.jfr.consumer.RecordedEvent; -import jdk.jfr.internal.test.WhiteBox; -import jdk.test.lib.jfr.EventNames; -import jdk.test.lib.jfr.Events; - -/** - * @test - * @key jfr - * @requires vm.hasJFR - * @requires vm.gc == "null" - * @summary Test leak profiler with Parallel Old GC - * @library /test/lib /test/jdk - * @modules jdk.jfr/jdk.jfr.internal.test - * @run main/othervm -XX:TLABSize=2k -XX:+UseParallelOldGC jdk.jfr.event.oldobject.TestParallelOld - */ -public class TestParallelOld { - - static private class FindMe { - } - - public static List list = new ArrayList<>(OldObjects.MIN_SIZE); - - public static void main(String[] args) throws Exception { - WhiteBox.setWriteAllObjectSamples(true); - - try (Recording r = new Recording()) { - r.enable(EventNames.OldObjectSample).withStackTrace().with("cutoff", "infinity"); - r.start(); - allocateFindMe(); - System.gc(); - r.stop(); - List events = Events.fromRecording(r); - System.out.println(events); - if (OldObjects.countMatchingEvents(events, FindMe[].class, null, null, -1, "allocateFindMe") == 0) { - throw new Exception("Could not find leak with " + FindMe[].class); - } - } - } - - public static void allocateFindMe() { - for (int i = 0; i < OldObjects.MIN_SIZE; i++) { - // Allocate array to trigger sampling code path for interpreter / c1 - list.add(new FindMe[0]); - } - } - -}