mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-15 18:33:41 +00:00
8235907: Fix tests referencing UseParallelOldGC
Remove tests using the obsolete UseParallelOldGC flag. Reviewed-by: lkorinth, dlong
This commit is contained in:
parent
89e0d29101
commit
bc97279caf
@ -37,7 +37,6 @@ package gc;
|
||||
* @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
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
@ -38,10 +38,8 @@ package gc.arguments;
|
||||
* @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
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@ -44,9 +44,7 @@ package gc.arguments;
|
||||
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);
|
||||
|
||||
|
||||
@ -53,7 +53,6 @@ package gc.arguments;
|
||||
* @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
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
@ -61,8 +61,8 @@ import gc.testlibrary.PerfCounters;
|
||||
* 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
|
||||
|
||||
@ -58,8 +58,8 @@ public class TestAllocateOldGenAt {
|
||||
"-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 {
|
||||
|
||||
@ -82,13 +82,13 @@ public class TestAllocateOldGenAtError {
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@ -75,8 +75,8 @@ public class TestOldObjectsOnNvdimm {
|
||||
// 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 {
|
||||
|
||||
@ -76,8 +76,8 @@ public class TestYoungObjectsOnDram {
|
||||
// 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 {
|
||||
|
||||
@ -34,7 +34,6 @@ package gc.stress;
|
||||
* @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
|
||||
*/
|
||||
|
||||
|
||||
@ -31,7 +31,6 @@ package gc.stress.gcold;
|
||||
* @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) {
|
||||
|
||||
@ -60,7 +60,6 @@ public class UseCompressedOops {
|
||||
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");
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ import jdk.test.lib.jfr.GCHelper;
|
||||
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);
|
||||
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
@ -32,7 +32,7 @@ package jdk.jfr.event.gc.collection;
|
||||
*
|
||||
* @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 {
|
||||
|
||||
@ -39,7 +39,7 @@ import jdk.test.lib.jfr.GCHelper;
|
||||
* @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;
|
||||
|
||||
@ -42,7 +42,7 @@ import jdk.test.lib.jfr.Events;
|
||||
* @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 {
|
||||
|
||||
@ -40,7 +40,7 @@ import sun.hotspot.WhiteBox;
|
||||
* @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
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@ import jdk.test.lib.jfr.EventVerifier;
|
||||
* @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 */
|
||||
|
||||
@ -36,7 +36,7 @@ import jdk.test.lib.jfr.EventVerifier;
|
||||
* @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 */
|
||||
|
||||
@ -41,7 +41,7 @@ import jdk.test.lib.jfr.Events;
|
||||
* @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 {
|
||||
|
||||
@ -41,7 +41,7 @@ import jdk.test.lib.jfr.Events;
|
||||
* @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 {
|
||||
|
||||
@ -32,7 +32,7 @@ package jdk.jfr.event.gc.detailed;
|
||||
*
|
||||
* @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 {
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
@ -32,7 +32,7 @@ import jdk.test.lib.jfr.GCHelper;
|
||||
* @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 {
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
@ -32,7 +32,7 @@ import jdk.test.lib.jfr.GCHelper;
|
||||
* @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 {
|
||||
|
||||
@ -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<FindMe[]> 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<RecordedEvent> 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]);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user