8243933: use driver mode in gc tests

Reviewed-by: kbarrett
This commit is contained in:
Igor Ignatyev 2020-04-29 07:08:31 -07:00
parent 311c9ab5ba
commit e7aafcd61d
62 changed files with 110 additions and 110 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2020, 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
@ -32,7 +32,7 @@ package gc;
* @library /test/lib
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm -XX:+UseSerialGC gc.TestAgeOutput UseSerialGC
* @run driver gc.TestAgeOutput UseSerialGC
*/
/*
@ -45,7 +45,7 @@ package gc;
* @library /test/lib
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm -XX:+UseG1GC gc.TestAgeOutput UseG1GC
* @run driver gc.TestAgeOutput UseG1GC
*/
import sun.hotspot.WhiteBox;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2020, 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
@ -33,7 +33,7 @@ package gc;
* @library /test/lib
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm -XX:+UseG1GC gc.TestNumWorkerOutput UseG1GC
* @run driver gc.TestNumWorkerOutput UseG1GC
*/
import sun.hotspot.WhiteBox;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2020, 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
@ -36,7 +36,7 @@ import jdk.test.lib.Platform;
* @library /
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.arguments.TestCompressedClassFlags
* @run driver gc.arguments.TestCompressedClassFlags
*/
public class TestCompressedClassFlags {
public static void main(String[] args) throws Exception {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2020, 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
@ -32,7 +32,7 @@ package gc.arguments;
* @library /
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.arguments.TestG1ConcMarkStepDurationMillis
* @run driver gc.arguments.TestG1ConcMarkStepDurationMillis
*/
import jdk.test.lib.process.ProcessTools;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2020, 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
@ -33,7 +33,7 @@ package gc.arguments;
* @library /
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.arguments.TestG1ConcRefinementThreads
* @run driver gc.arguments.TestG1ConcRefinementThreads
*/
import jdk.test.lib.process.OutputAnalyzer;

View File

@ -33,7 +33,7 @@ package gc.arguments;
* @modules java.management/sun.management
* @library /test/lib
* @library /
* @run main gc.arguments.TestG1HeapRegionSize
* @run driver gc.arguments.TestG1HeapRegionSize
*/
import java.util.regex.Matcher;

View File

@ -35,7 +35,7 @@ package gc.arguments;
* java.management
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm gc.arguments.TestG1HeapSizeFlags
* @run driver gc.arguments.TestG1HeapSizeFlags
* @author thomas.schatzl@oracle.com
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2020, 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
@ -32,7 +32,7 @@ package gc.arguments;
* @library /
* @modules java.base/jdk.internal.misc
* java.management
* @run main/othervm gc.arguments.TestHeapFreeRatio
* @run driver gc.arguments.TestHeapFreeRatio
*/
import jdk.test.lib.process.OutputAnalyzer;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2020, 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
@ -33,7 +33,7 @@ package gc.arguments;
* @library /
* @modules java.base/jdk.internal.misc
* java.management
* @run main/othervm gc.arguments.TestInitialTenuringThreshold
* @run driver gc.arguments.TestInitialTenuringThreshold
* @author thomas.schatzl@oracle.com
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2020, 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
@ -34,7 +34,7 @@ package gc.arguments;
* @library /
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.arguments.TestMaxNewSize -XX:+UseSerialGC
* @run driver gc.arguments.TestMaxNewSize -XX:+UseSerialGC
* @author thomas.schatzl@oracle.com, jesper.wilhelmsson@oracle.com
*/
@ -49,7 +49,7 @@ package gc.arguments;
* @library /
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.arguments.TestMaxNewSize -XX:+UseParallelGC
* @run driver gc.arguments.TestMaxNewSize -XX:+UseParallelGC
* @author thomas.schatzl@oracle.com, jesper.wilhelmsson@oracle.com
*/
@ -64,7 +64,7 @@ package gc.arguments;
* @library /
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.arguments.TestMaxNewSize -XX:+UseG1GC
* @run driver gc.arguments.TestMaxNewSize -XX:+UseG1GC
* @author thomas.schatzl@oracle.com, jesper.wilhelmsson@oracle.com
*/

View File

@ -36,7 +36,7 @@ package gc.arguments;
* java.management
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main gc.arguments.TestMaxRAMFlags
* @run driver gc.arguments.TestMaxRAMFlags
* @author bob.vandette@oracle.com
*/

View File

@ -35,7 +35,7 @@ package gc.arguments;
* java.management
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm gc.arguments.TestMinInitialErgonomics
* @run driver gc.arguments.TestMinInitialErgonomics
* @author thomas.schatzl@oracle.com
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2020, 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
@ -33,7 +33,7 @@ package gc.arguments;
* @requires vm.gc.Serial
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.arguments.TestNewSizeThreadIncrease
* @run driver gc.arguments.TestNewSizeThreadIncrease
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2020, 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
@ -34,7 +34,7 @@ package gc.arguments;
* @library /
* @modules java.base/jdk.internal.misc
* java.management
* @run main/othervm gc.arguments.TestObjectTenuringFlags
* @run driver gc.arguments.TestObjectTenuringFlags
*/
import jdk.test.lib.process.OutputAnalyzer;

View File

@ -36,7 +36,7 @@ package gc.arguments;
* java.management
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm gc.arguments.TestParallelHeapSizeFlags
* @run driver gc.arguments.TestParallelHeapSizeFlags
* @author thomas.schatzl@oracle.com
*/

View File

@ -34,7 +34,7 @@ package gc.arguments;
* java.management
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm gc.arguments.TestSerialHeapSizeFlags
* @run driver gc.arguments.TestSerialHeapSizeFlags
* @author thomas.schatzl@oracle.com
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2020, 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
@ -29,7 +29,7 @@ package gc.arguments;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main/othervm gc.arguments.TestSoftMaxHeapSizeFlag
* @run driver gc.arguments.TestSoftMaxHeapSizeFlag
*/
import jdk.test.lib.process.ProcessTools;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2020, 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
@ -39,7 +39,7 @@ import jdk.test.lib.cli.CommandLineOptionTest;
* | vm.opt.IgnoreUnrecognizedVMOptions == "false")
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.arguments.TestSurvivorAlignmentInBytesOption
* @run driver gc.arguments.TestSurvivorAlignmentInBytesOption
*/
public class TestSurvivorAlignmentInBytesOption {
public static void main(String args[]) throws Throwable {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2020, 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
@ -32,7 +32,7 @@ package gc.arguments;
* @library /
* @modules java.base/jdk.internal.misc
* java.management
* @run main/othervm gc.arguments.TestUnrecognizedVMOptionsHandling
* @run driver gc.arguments.TestUnrecognizedVMOptionsHandling
*/
import jdk.test.lib.process.OutputAnalyzer;

View File

@ -29,7 +29,7 @@ package gc.epsilon;
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @summary Epsilon GC should die on heap exhaustion
* @library /test/lib
* @run main gc.epsilon.TestDieDefault
* @run driver gc.epsilon.TestDieDefault
*/
import jdk.test.lib.process.OutputAnalyzer;

View File

@ -29,7 +29,7 @@ package gc.epsilon;
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @summary Epsilon GC should die on heap exhaustion with error handler attached
* @library /test/lib
* @run main gc.epsilon.TestDieWithHeapDump
* @run driver gc.epsilon.TestDieWithHeapDump
*/
import java.io.*;

View File

@ -29,7 +29,7 @@ package gc.epsilon;
* @requires vm.gc.Epsilon & !vm.graal.enabled
* @summary Epsilon GC should die on heap exhaustion with error handler attached
* @library /test/lib
* @run main gc.epsilon.TestDieWithOnError
* @run driver gc.epsilon.TestDieWithOnError
*/
import jdk.test.lib.process.OutputAnalyzer;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2020, 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
@ -34,7 +34,7 @@ package gc.g1;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.g1.Test2GbHeap
* @run driver gc.g1.Test2GbHeap
*/
import java.util.ArrayList;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2020, 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
@ -33,7 +33,7 @@ package gc.g1;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.g1.TestEagerReclaimHumongousRegions
* @run driver gc.g1.TestEagerReclaimHumongousRegions
*/
import java.util.regex.Pattern;

View File

@ -33,7 +33,7 @@ package gc.g1;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.g1.TestEagerReclaimHumongousRegionsClearMarkBits
* @run driver gc.g1.TestEagerReclaimHumongousRegionsClearMarkBits
*/
import java.util.ArrayList;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2020, 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
@ -36,7 +36,7 @@ package gc.g1;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.g1.TestEagerReclaimHumongousRegionsWithRefs
* @run driver gc.g1.TestEagerReclaimHumongousRegionsWithRefs
*/
import java.util.regex.Pattern;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2020, 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
@ -33,7 +33,7 @@ package gc.g1;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.g1.TestG1TraceEagerReclaimHumongousObjects
* @run driver gc.g1.TestG1TraceEagerReclaimHumongousObjects
*/
import jdk.test.lib.process.OutputAnalyzer;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2020, 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
@ -31,7 +31,7 @@ package gc.g1;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.g1.TestHumongousAllocInitialMark
* @run driver gc.g1.TestHumongousAllocInitialMark
*/
import jdk.test.lib.process.OutputAnalyzer;

View File

@ -32,7 +32,7 @@ package gc.g1;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.g1.TestMarkStackSizes
* @run driver gc.g1.TestMarkStackSizes
*/
import java.util.ArrayList;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2020, 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
@ -32,7 +32,7 @@ package gc.g1;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.g1.TestPLABSizeBounds
* @run driver gc.g1.TestPLABSizeBounds
*/
import java.util.ArrayList;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2020, 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
@ -31,7 +31,7 @@ package gc.g1;
* @library /test/lib /
* @modules java.base/jdk.internal.misc
* @modules java.management/sun.management
* @run main gc.g1.TestPeriodicLogMessages
* @run driver gc.g1.TestPeriodicLogMessages
*/
import jdk.test.lib.process.OutputAnalyzer;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2020, 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
@ -32,7 +32,7 @@ package gc.g1;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.g1.TestPrintRegionRememberedSetInfo
* @run driver gc.g1.TestPrintRegionRememberedSetInfo
* @author thomas.schatzl@oracle.com
*/

View File

@ -34,7 +34,7 @@ package gc.g1;
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @summary Verify output of -Xlog:gc+remset*=trace
* @run main gc.g1.TestRemsetLogging
* @run driver gc.g1.TestRemsetLogging
*
* Test the output of -Xlog:gc+remset*=trace in conjunction with G1SummarizeRSetStatsPeriod.
*/

View File

@ -34,7 +34,7 @@ package gc.g1;
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @summary Verify output of -Xlog:gc+remset*=trace in regards to per-region type output
* @run main gc.g1.TestRemsetLoggingPerRegion
* @run driver gc.g1.TestRemsetLoggingPerRegion
*/
public class TestRemsetLoggingPerRegion {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2020, 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
@ -33,7 +33,7 @@ package gc.g1;
* java.management/sun.management
* @summary Ensure that various values of worker threads/concurrent
* refinement threads do not crash the VM.
* @run main gc.g1.TestRemsetLoggingThreads
* @run driver gc.g1.TestRemsetLoggingThreads
*/
import java.util.regex.Matcher;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2020, 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
@ -26,14 +26,14 @@ package gc.g1;
/**
* @test
* @bug 8169703
* @key gc regression
* @summary Verifies that dumping and loading a CDS archive succeeds with AlwaysPreTouch
* @requires vm.gc.G1
* @key gc regression
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.g1.TestSharedArchiveWithPreTouch
* @run driver gc.g1.TestSharedArchiveWithPreTouch
*/
import java.util.List;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2020, 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
@ -37,7 +37,7 @@ package gc.g1;
* @requires vm.gc.G1
* @modules java.base/jdk.internal.misc
* java.management/sun.management
* @run main gc.g1.TestShrinkDefragmentedHeap
* @run driver gc.g1.TestShrinkDefragmentedHeap
*/
import java.lang.management.ManagementFactory;
import java.lang.management.MemoryUsage;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2020, 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
@ -34,7 +34,7 @@ package gc.g1;
* @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open
* java.management
* @run main gc.g1.TestStringDeduplicationAgeThreshold
* @run driver gc.g1.TestStringDeduplicationAgeThreshold
*/
public class TestStringDeduplicationAgeThreshold {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2020, 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
@ -34,7 +34,7 @@ package gc.g1;
* @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open
* java.management
* @run main gc.g1.TestStringDeduplicationFullGC
* @run driver gc.g1.TestStringDeduplicationFullGC
*/
public class TestStringDeduplicationFullGC {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2020, 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
@ -34,7 +34,7 @@ package gc.g1;
* @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open
* java.management
* @run main gc.g1.TestStringDeduplicationInterned
* @run driver gc.g1.TestStringDeduplicationInterned
*/
public class TestStringDeduplicationInterned {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2020, 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
@ -34,7 +34,7 @@ package gc.g1;
* @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open
* java.management
* @run main gc.g1.TestStringDeduplicationPrintOptions
* @run driver gc.g1.TestStringDeduplicationPrintOptions
*/
public class TestStringDeduplicationPrintOptions {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2020, 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
@ -34,7 +34,7 @@ package gc.g1;
* @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open
* java.management
* @run main gc.g1.TestStringDeduplicationTableRehash
* @run driver gc.g1.TestStringDeduplicationTableRehash
*/
public class TestStringDeduplicationTableRehash {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2020, 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
@ -34,7 +34,7 @@ package gc.g1;
* @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open
* java.management
* @run main gc.g1.TestStringDeduplicationTableResize
* @run driver gc.g1.TestStringDeduplicationTableResize
*/
public class TestStringDeduplicationTableResize {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2020, 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
@ -34,7 +34,7 @@ package gc.g1;
* @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open
* java.management
* @run main gc.g1.TestStringDeduplicationYoungGC
* @run driver gc.g1.TestStringDeduplicationYoungGC
*/
public class TestStringDeduplicationYoungGC {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2020, 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
@ -31,7 +31,7 @@ package gc.logging;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.logging.TestDeprecatedPrintFlags
* @run driver gc.logging.TestDeprecatedPrintFlags
*/
import jdk.test.lib.process.OutputAnalyzer;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2020, 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
@ -32,7 +32,7 @@ package gc.logging;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.logging.TestPrintReferences
* @run driver gc.logging.TestPrintReferences
*/
import java.lang.ref.SoftReference;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2020, 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
@ -35,7 +35,7 @@ import jdk.test.lib.process.OutputAnalyzer;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.metaspace.TestMetaspaceSizeFlags
* @run driver gc.metaspace.TestMetaspaceSizeFlags
*/
public class TestMetaspaceSizeFlags {
public static final long K = 1024L;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2020, 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
@ -30,7 +30,7 @@ package gc.serial;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* @summary Allocate to get a promotion failure and verify that that heap change logging is present.
* @run main gc.serial.HeapChangeLogging
* @run driver gc.serial.HeapChangeLogging
*/
import java.util.regex.Matcher;

View File

@ -28,7 +28,7 @@
* @key gc
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @library /test/lib
* @run main TestAllocLargeObj
* @run driver TestAllocLargeObj
*/
import jdk.test.lib.process.OutputAnalyzer;

View File

@ -28,7 +28,7 @@
* @key gc
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @library /test/lib
* @run main TestAllocLargerThanHeap
* @run driver TestAllocLargerThanHeap
*/
import jdk.test.lib.process.OutputAnalyzer;

View File

@ -28,7 +28,7 @@
* @key gc
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @library /test/lib
* @run main TestAllocSmallObj
* @run driver TestAllocSmallObj
*/
import jdk.test.lib.process.OutputAnalyzer;

View File

@ -28,7 +28,7 @@
* @key gc
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @library /test/lib
* @run main TestClassLoaderLeak
* @run driver TestClassLoaderLeak
*/
import java.util.*;

View File

@ -28,7 +28,7 @@
* @key gc
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @library /test/lib
* @run main TestThreadFailure
* @run driver TestThreadFailure
*/
import java.util.*;

View File

@ -28,9 +28,9 @@
* @key gc
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @library /test/lib
* @run main/othervm TestSelectiveBarrierFlags -Xint
* @run main/othervm TestSelectiveBarrierFlags -Xbatch -XX:CompileThreshold=100 -XX:TieredStopAtLevel=1
* @run main/othervm TestSelectiveBarrierFlags -Xbatch -XX:CompileThreshold=100 -XX:-TieredCompilation -XX:+IgnoreUnrecognizedVMOptions -XX:+ShenandoahVerifyOptoBarriers
* @run driver TestSelectiveBarrierFlags -Xint
* @run driver TestSelectiveBarrierFlags -Xbatch -XX:CompileThreshold=100 -XX:TieredStopAtLevel=1
* @run driver TestSelectiveBarrierFlags -Xbatch -XX:CompileThreshold=100 -XX:-TieredCompilation -XX:+IgnoreUnrecognizedVMOptions -XX:+ShenandoahVerifyOptoBarriers
*/
import java.util.*;

View File

@ -27,7 +27,7 @@
* @key gc
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @library /test/lib
* @run main/othervm TestWrongBarrierDisable
* @run driver TestWrongBarrierDisable
*/
import java.util.*;

View File

@ -27,7 +27,7 @@
* @key gc
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @library /test/lib
* @run main/othervm TestWrongBarrierEnable
* @run driver TestWrongBarrierEnable
*/
import java.util.*;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2020, 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
@ -32,7 +32,7 @@ package gc.startup_warnings;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.startup_warnings.TestG1
* @run driver gc.startup_warnings.TestG1
*/
import jdk.test.lib.process.ProcessTools;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2020, 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
@ -32,7 +32,7 @@ package gc.startup_warnings;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.startup_warnings.TestParallelGC
* @run driver gc.startup_warnings.TestParallelGC
*/
import jdk.test.lib.process.ProcessTools;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2020, 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
@ -31,7 +31,7 @@ package gc.startup_warnings;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.startup_warnings.TestSerialGC
* @run driver gc.startup_warnings.TestSerialGC
*/
import jdk.test.lib.process.ProcessTools;

View File

@ -32,7 +32,7 @@ package gc.startup_warnings;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main gc.startup_warnings.TestShenandoah
* @run driver gc.startup_warnings.TestShenandoah
*/
import jdk.test.lib.process.ProcessTools;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020, 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
@ -31,10 +31,10 @@ package gc.stress;
* @key gc
* @library /test/lib
* @modules java.base/jdk.internal.misc
* @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:+UseG1GC
* @run driver gc.stress.TestReclaimStringsLeaksMemory
* @run driver gc.stress.TestReclaimStringsLeaksMemory -XX:+UseSerialGC
* @run driver gc.stress.TestReclaimStringsLeaksMemory -XX:+UseParallelGC
* @run driver gc.stress.TestReclaimStringsLeaksMemory -XX:+UseG1GC
*/
import java.util.Arrays;

View File

@ -28,7 +28,7 @@ package gc.z;
* @requires vm.gc.Z & !vm.graal.enabled
* @summary Test ZGC with small heaps
* @library / /test/lib
* @run main/othervm gc.z.TestSmallHeap 8M 16M 32M 64M 128M 256M 512M 1024M
* @run driver gc.z.TestSmallHeap 8M 16M 32M 64M 128M 256M 512M 1024M
*/
import jdk.test.lib.process.ProcessTools;