8217329: JTREG: Clean up, remove unused imports in gc folder
Reviewed-by: lmesnik, tschatzl
This commit is contained in:
parent
50a648854a
commit
2aa7590846
test/hotspot/jtreg/gc
TestAgeOutput.javaTestCardTablePageCommits.javaTestGenerationPerfCounter.javaTestMemoryMXBeansAndPoolsPresence.javaTestNumWorkerOutput.javaTestObjectAlignment.javaTestPolicyNamePerfCounter.java
arguments
class_unloading
concurrent_phase_control
epsilon
g1
TestEagerReclaimHumongousRegionsLog.javaTestLargePageUseForAuxMemory.javaTestPLABOutput.javaTestPeriodicLogMessages.javaTestRemsetLoggingTools.javaTestShrinkAuxiliaryData.javaTestStringDeduplicationTools.javaTestVerifyGCType.java
mixedgc
logging
metaspace
nvdimm
stress
whitebox
@ -55,12 +55,9 @@ import sun.hotspot.WhiteBox;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
||||
import static jdk.test.lib.Asserts.*;
|
||||
|
||||
public class TestAgeOutput {
|
||||
|
||||
public static void checkPattern(String pattern, String what) throws Exception {
|
||||
|
@ -23,7 +23,6 @@
|
||||
|
||||
package gc;
|
||||
|
||||
import jdk.test.lib.JDKToolFinder;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
import jdk.test.lib.Platform;
|
||||
|
@ -24,7 +24,6 @@
|
||||
package gc;
|
||||
|
||||
import static jdk.test.lib.Asserts.*;
|
||||
import gc.testlibrary.PerfCounter;
|
||||
import gc.testlibrary.PerfCounters;
|
||||
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
package gc;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
import java.lang.management.*;
|
||||
import static jdk.test.lib.Asserts.*;
|
||||
import java.util.stream.*;
|
||||
|
@ -54,12 +54,9 @@ import sun.hotspot.WhiteBox;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
||||
import static jdk.test.lib.Asserts.*;
|
||||
|
||||
public class TestNumWorkerOutput {
|
||||
|
||||
public static void checkPatternOnce(String pattern, String what) throws Exception {
|
||||
|
@ -44,9 +44,6 @@ package gc;
|
||||
* @run main/othervm gc.TestObjectAlignment -Xmx20M -XX:-ExplicitGCInvokesConcurrent -XX:+IgnoreUnrecognizedVMOptions -XX:ObjectAlignmentInBytes=256
|
||||
*/
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
|
||||
public class TestObjectAlignment {
|
||||
|
||||
public static byte[] garbage;
|
||||
|
@ -24,7 +24,6 @@
|
||||
package gc;
|
||||
|
||||
import static jdk.test.lib.Asserts.*;
|
||||
import gc.testlibrary.PerfCounter;
|
||||
import gc.testlibrary.PerfCounters;
|
||||
|
||||
|
||||
|
@ -23,7 +23,6 @@
|
||||
|
||||
package gc.arguments;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
/**
|
||||
|
@ -35,12 +35,9 @@ package gc.arguments;
|
||||
* @run driver gc.arguments.TestSelectDefaultGC
|
||||
*/
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
||||
import java.util.regex.*;
|
||||
|
||||
public class TestSelectDefaultGC {
|
||||
public static void assertVMOption(OutputAnalyzer output, String option, boolean value) {
|
||||
output.shouldMatch(" " + option + " .*=.* " + value + " ");
|
||||
|
@ -37,7 +37,6 @@ package gc.arguments;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import jdk.test.lib.Utils;
|
||||
|
||||
public class TestShrinkHeapInSteps {
|
||||
|
@ -42,8 +42,6 @@ import jdk.test.lib.process.OutputAnalyzer;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
import java.lang.management.GarbageCollectorMXBean;
|
||||
import java.lang.management.ManagementFactory;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import sun.hotspot.WhiteBox;
|
||||
|
||||
public class TestCMSClassUnloadingEnabledHWM {
|
||||
|
@ -39,8 +39,6 @@ package gc.class_unloading;
|
||||
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import sun.hotspot.WhiteBox;
|
||||
|
||||
public class TestG1ClassUnloadingHWM {
|
||||
|
@ -51,7 +51,6 @@ import java.util.List;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
||||
|
@ -38,8 +38,6 @@ package gc.epsilon;
|
||||
* @run main/othervm -Xmx1g -Xbatch -Xcomp -XX:-TieredCompilation -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestArraycopyCheckcast
|
||||
*/
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class TestArraycopyCheckcast {
|
||||
|
||||
static int COUNT = Integer.getInteger("count", 1000);
|
||||
|
@ -32,7 +32,6 @@ package gc.epsilon;
|
||||
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestEpsilonEnabled
|
||||
*/
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
import java.lang.management.GarbageCollectorMXBean;
|
||||
import java.lang.management.ManagementFactory;
|
||||
|
||||
|
@ -36,7 +36,6 @@ package gc.epsilon;
|
||||
*/
|
||||
|
||||
import java.lang.management.*;
|
||||
import java.util.*;
|
||||
|
||||
public class TestMemoryMXBeans {
|
||||
|
||||
|
@ -39,12 +39,8 @@ package gc.g1;
|
||||
import sun.hotspot.WhiteBox;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import jdk.test.lib.Asserts;
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
||||
|
@ -38,9 +38,6 @@ package gc.g1;
|
||||
*/
|
||||
|
||||
import java.lang.Math;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
import jdk.test.lib.Asserts;
|
||||
|
@ -41,7 +41,6 @@ import sun.hotspot.WhiteBox;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
|
||||
|
@ -36,7 +36,6 @@ package gc.g1;
|
||||
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
import jdk.test.lib.Platform;
|
||||
|
||||
public class TestPeriodicLogMessages {
|
||||
|
||||
|
@ -27,13 +27,10 @@ package gc.g1;
|
||||
* Common helpers for TestRemsetLogging* tests
|
||||
*/
|
||||
|
||||
import com.sun.management.HotSpotDiagnosticMXBean;
|
||||
import com.sun.management.VMOption;
|
||||
import sun.hotspot.WhiteBox;
|
||||
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
import java.lang.management.ManagementFactory;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
||||
|
@ -27,7 +27,6 @@ import jdk.test.lib.Asserts;
|
||||
import jdk.test.lib.Platform;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
import jdk.test.lib.Utils;
|
||||
import jtreg.SkippedException;
|
||||
|
||||
import java.io.IOException;
|
||||
@ -36,7 +35,6 @@ import java.lang.management.MemoryUsage;
|
||||
import java.text.DecimalFormat;
|
||||
import java.text.DecimalFormatSymbols;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
@ -27,9 +27,7 @@ package gc.g1;
|
||||
* Common code for string deduplication tests
|
||||
*/
|
||||
|
||||
import java.lang.management.*;
|
||||
import java.lang.reflect.*;
|
||||
import java.security.*;
|
||||
import java.util.*;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
|
@ -38,7 +38,6 @@ import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
||||
import jdk.test.lib.Asserts;
|
||||
import jdk.test.lib.Utils;
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
import sun.hotspot.WhiteBox;
|
||||
|
@ -42,8 +42,6 @@ import sun.hotspot.WhiteBox;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Collections;
|
||||
|
||||
import java.lang.management.*;
|
||||
|
||||
// 8195115 says that for the "G1 Old Gen" MemoryPool, CollectionUsage.used
|
||||
|
@ -36,10 +36,8 @@ package gc.logging;
|
||||
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
import java.io.File;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class TestDeprecatedPrintFlags {
|
||||
|
@ -27,7 +27,6 @@ package gc.logging;
|
||||
import java.io.File;
|
||||
import java.net.URL;
|
||||
import java.net.URLClassLoader;
|
||||
import java.util.List;
|
||||
import java.util.function.Predicate;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.regex.Matcher;
|
||||
|
@ -36,8 +36,6 @@ package gc.logging;
|
||||
|
||||
import java.lang.ref.SoftReference;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
import java.util.regex.Pattern;
|
||||
|
@ -26,8 +26,6 @@ package gc.metaspace;
|
||||
import java.util.List;
|
||||
import java.lang.management.*;
|
||||
import jdk.test.lib.Platform;
|
||||
import jdk.test.lib.process.ProcessTools;
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
import static jdk.test.lib.Asserts.*;
|
||||
|
||||
/* @test TestMetaspaceMemoryPool
|
||||
|
@ -28,7 +28,6 @@ import java.lang.management.*;
|
||||
|
||||
import jdk.test.lib.Platform;
|
||||
import static jdk.test.lib.Asserts.*;
|
||||
import gc.testlibrary.PerfCounter;
|
||||
import gc.testlibrary.PerfCounters;
|
||||
|
||||
/* @test TestPerfCountersAndMemoryPools
|
||||
|
@ -41,7 +41,6 @@ import jdk.test.lib.Asserts;
|
||||
import sun.hotspot.WhiteBox;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Collections;
|
||||
import gc.testlibrary.Helpers;
|
||||
|
||||
|
@ -41,7 +41,6 @@ import jdk.test.lib.Asserts;
|
||||
import sun.hotspot.WhiteBox;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Collections;
|
||||
|
||||
/*
|
||||
|
@ -41,7 +41,6 @@ import jdk.test.lib.Asserts;
|
||||
import sun.hotspot.WhiteBox;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Collections;
|
||||
|
||||
/**
|
||||
|
@ -30,7 +30,6 @@ package gc.stress.gclocker;
|
||||
import java.lang.management.MemoryPoolMXBean;
|
||||
import java.lang.management.ManagementFactory;
|
||||
import java.lang.management.MemoryUsage;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.ArrayDeque;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
@ -26,7 +26,6 @@ package gc.stress.systemgc;
|
||||
// A test that stresses a full GC by allocating objects of different lifetimes
|
||||
// and concurrently calling System.gc().
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.TreeMap;
|
||||
|
@ -38,7 +38,6 @@ package gc.whitebox;
|
||||
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+UseG1GC gc.whitebox.TestConcMarkCycleWB
|
||||
* @summary Verifies that ConcurrentMarking-related WB works properly
|
||||
*/
|
||||
import static jdk.test.lib.Asserts.assertFalse;
|
||||
import static jdk.test.lib.Asserts.assertTrue;
|
||||
import sun.hotspot.WhiteBox;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user