8229267: [TESTBUG] Remove unnecessary @modules dependencies in CDS tests

Reviewed-by: alanb, lfoltan
This commit is contained in:
Ioi Lam 2019-08-09 13:13:36 -07:00
parent e74e541d56
commit e9b271dd10
127 changed files with 81 additions and 353 deletions
test/hotspot/jtreg/runtime/cds
ArchiveDoesNotExist.javaBootAppendTests.javaCdsDifferentObjectAlignment.javaCdsSameObjectAlignment.javaCheckDefaultArchiveFile.javaCheckSharingWithDefaultArchive.javaDumpSharedDictionary.javaDumpSymbolAndStringTable.javaNonBootLoaderClasses.javaSharedBaseAddress.javaSharedStrings.javaSharedStringsDedup.javaSharedStringsRunAuto.javaSpaceUtilizationCheck.javaTestInterpreterMethodEntries.java
appcds
AppendClasspath.javaBootClassPathMismatch.javaCDSandJFR.javaCaseSensitiveClassPath.javaClassLoaderTest.javaClassPathAttr.javaCommandLineFlagCombo.javaCommandLineFlagComboNegative.javaDumpClassList.javaExtraSymbols.javaFieldAnnotationsTest.javaHelloExtTest.javaHelloTest.javaIgnoreEmptyClassPaths.javaJvmtiAddPath.javaLongClassListPath.javaMissingSuperTest.javaMoveJDKTest.javaMultiProcessSharing.javaMultiReleaseJars.javaOldClassTest.javaParallelLoad2.javaParallelLoadTest.javaPrintSharedArchiveAndExit.javaProtectionDomain.javaRelativePath.javaRewriteBytecodesTest.javaSharedArchiveConsistency.javaSharedBaseAddress.javaSharedPackages.javaSignedJar.javaSpecifySysLoaderProp.javaTestWithProfiler.javaTraceLongClasspath.javaVerifierTest_0.javaVerifierTest_1A.javaVerifierTest_1B.javaVerifierTest_2.javaWideIloadTest.javaWrongClasspath.javaXShareAutoWithChangedJar.java
cacheObject
condy
customLoader
dynamicArchive
javaldr
jigsaw

@ -29,8 +29,6 @@
* mode is AUTO.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run driver ArchiveDoesNotExist
*/

@ -27,10 +27,6 @@
* @summary Testing -Xbootclasspath/a support for CDS
* @requires vm.cds
* @library /test/lib
* @modules java.compiler
* java.base/jdk.internal.misc
* java.management
* jdk.internal.jvmstat/sun.jvmstat.monitor
* @compile javax/sound/sampled/MyClass.jasm
* @compile javax/annotation/processing/FilerException.jasm
* @compile nonjdk/myPackage/MyClass.java

@ -32,8 +32,6 @@
* @requires vm.bits == 64
* @library /test/lib
* @bug 8025642
* @modules java.base/jdk.internal.misc
* java.management
* @run driver CdsDifferentObjectAlignment
*/

@ -28,8 +28,6 @@
* @requires vm.cds
* @requires vm.bits == 64
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run driver CdsSameObjectAlignment
*/

@ -26,8 +26,6 @@
* @summary JDK platforms/binaries do not support default CDS archive should
* not contain classes.jsa in the default location.
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions

@ -28,8 +28,6 @@
* Verify a set of well-known shared classes.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions

@ -27,7 +27,6 @@
* @summary Check that Shared Dictionary is printed out with jcmd
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* @run driver DumpSharedDictionary
*/

@ -26,8 +26,6 @@
* @bug 8059510
* @summary Test jcmd VM.symboltable, VM.stringtable and VM.systemdictionary options
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run main/othervm -XX:+UnlockDiagnosticVMOptions DumpSymbolAndStringTable
*/
import jdk.test.lib.cds.CDSTestUtils;

@ -26,8 +26,6 @@
* @summary Test to ensure platform and app classes are archived when specified in classlist
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run driver NonBootLoaderClasses
*/

@ -27,8 +27,6 @@
* VM handles normal values as well as edge values w/o a crash.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run driver SharedBaseAddress
*/

@ -27,8 +27,6 @@
* are actually shared
* @requires vm.cds.archived.java.heap
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @build SharedStringsWb sun.hotspot.WhiteBox
* @run driver ClassFileInstaller -jar whitebox.jar sun.hotspot.WhiteBox
* @run driver SharedStrings

@ -26,8 +26,6 @@
* @summary Test -Xshare:auto with shared strings and -XX:+UseStringDeduplication
* @requires vm.cds.archived.java.heap
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run driver SharedStringsDedup
*/

@ -26,8 +26,6 @@
* @summary Test -Xshare:auto with shared strings.
* @requires vm.cds.archived.java.heap
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run driver SharedStringsRunAuto
*/

@ -26,8 +26,6 @@
* @summary Check if the space utilization for shared spaces is adequate
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission

@ -30,8 +30,6 @@
* @comment the test disables intrinsics, so it can't be run w/ AOT'ed java module
* @requires !vm.aot.enabled
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run driver TestInterpreterMethodEntries true false
*/
@ -42,8 +40,6 @@
* and the intrinsic flag disabled during dump and enabled during use of the archive.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run driver TestInterpreterMethodEntries false true
*/

@ -27,9 +27,7 @@
* @summary At run time, it is OK to append new elements to the classpath that was used at dump time.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/Hello.java
* @compile test-classes/HelloMore.java
* @run driver AppendClasspath

@ -27,9 +27,7 @@
* @summary bootclasspath mismatch test.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/Hello.java
* @run driver BootClassPathMismatch
*/

@ -27,7 +27,6 @@
* @summary Make sure CDS and JFR work together.
* @requires vm.hasJFR & vm.cds
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds /test/hotspot/jtreg/runtime/cds/appcds/test-classes test-classes
* @modules jdk.jfr
* @build Hello GetFlightRecorder
* @run driver ClassFileInstaller -jar CDSandJFR.jar Hello GetFlightRecorder GetFlightRecorder$TestEvent GetFlightRecorder$SimpleEvent
* @run main/othervm/timeout=500 CDSandJFR

@ -29,9 +29,7 @@
* between dump time and archive use time
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @requires os.family != "mac"
* @compile test-classes/Hello.java
* @run driver CaseSensitiveClassPath

@ -27,9 +27,7 @@
* @summary Initiating and defining classloader test.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/Hello.java
* @compile test-classes/HelloWB.java
* @compile test-classes/ForNameTest.java

@ -27,9 +27,7 @@
* @summary Class-Path: attribute in MANIFEST file
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @run driver ClassPathAttr
*/

@ -32,9 +32,7 @@
* @summary Test command line flag combinations that
* could likely affect the behaviour of AppCDS
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission
* @compile test-classes/Hello.java

@ -30,9 +30,7 @@
* execute w/o compressed oops
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/Hello.java
* @run driver CommandLineFlagComboNegative
*/

@ -28,8 +28,7 @@
* --patch-module.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/ArrayListTest.java
* @run driver DumpClassList
*/

@ -27,9 +27,7 @@
* @summary Adding extra symbols into CDS archive using -XX:SharedArchiveConfigFile
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/Hello.java
* @run driver ExtraSymbols
*/

@ -27,9 +27,7 @@
* @summary Test for field annotations.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/FieldAnnotationsApp.java test-classes/MyAnnotation.java
* @run driver FieldAnnotationsTest
*/

@ -28,10 +28,7 @@
* (which used to be called the "extension loader) in AppCDS
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* jdk.internal.jvmstat/sun.jvmstat.monitor
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/HelloExt.java
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox

@ -27,9 +27,7 @@
* @summary Hello World test for AppCDS
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/Hello.java
* @run driver HelloTest
*/

@ -27,9 +27,7 @@
* @summary Test the -XX:+IgnoreEmptyClassPaths flag
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/Hello.java
* @compile test-classes/HelloMore.java
* @run driver IgnoreEmptyClassPaths

@ -28,9 +28,7 @@
* @requires vm.cds
* @bug 8060592
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @compile test-classes/Hello.java

@ -27,9 +27,7 @@
* @summary Test the handling of long path to the classlist file.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/Hello.java
* @run driver LongClassListPath
*/

@ -28,9 +28,7 @@
*
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/MissingSuper.java
* @run driver MissingSuperTest
*/

@ -28,9 +28,7 @@
* @requires vm.cds
* @requires os.family == "linux"
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/Hello.java
* @run driver MoveJDKTest
*/

@ -28,9 +28,7 @@
*
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @compile test-classes/MultiProcClass.java

@ -27,8 +27,7 @@
* @summary Test multi-release jar with AppCDS.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @run main/othervm/timeout=2400 MultiReleaseJars
*/

@ -28,8 +28,6 @@
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @compile test-classes/Hello.java
* @run build TestCommon JarBuilder

@ -27,9 +27,7 @@
* @summary Load app classes from CDS archive in parallel threads. Similar to ParallelLoad.java, but each class in its own JAR
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/ParallelLoad.java
* @compile test-classes/ParallelClasses.java
* @run driver ParallelLoad2

@ -27,9 +27,7 @@
* @summary Load app classes from CDS archive in parallel threads
* @library /test/lib
* @requires vm.cds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/ParallelLoad.java
* @compile test-classes/ParallelClasses.java
* @run driver ParallelLoadTest

@ -27,9 +27,7 @@
* @summary test the -XX:+PrintSharedArchiveAndExit flag
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/Hello.java
* @compile test-classes/HelloMore.java
* @run main/othervm/timeout=3600 PrintSharedArchiveAndExit

@ -27,9 +27,7 @@
* @summary AppCDS handling of protection domain.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/ProtDomain.java
* @compile test-classes/ProtDomainB.java
* @compile test-classes/JimageClassProtDomain.java

@ -27,9 +27,7 @@
* @summary Test relative paths specified in the -cp.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/Hello.java
* @compile test-classes/HelloMore.java
* @run driver RelativePath

@ -28,9 +28,7 @@
* the archived class with the same name is not loaded.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/RewriteBytecodes.java test-classes/Util.java test-classes/Super.java test-classes/Child.java
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox

@ -27,11 +27,7 @@
* @summary SharedArchiveConsistency
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.compiler
* java.management
* jdk.jartool/sun.tools.jar
* jdk.internal.jvmstat/sun.jvmstat.monitor
* @modules jdk.jartool/sun.tools.jar
* @build sun.hotspot.WhiteBox
* @compile test-classes/Hello.java
* @run driver ClassFileInstaller sun.hotspot.WhiteBox

@ -29,9 +29,7 @@
* w/o a crash.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/Hello.java
* @run main/timeout=240 SharedBaseAddress
*/

@ -27,9 +27,7 @@
* @summary AppCDS handling of package.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/PackageTest.java
* @compile test-classes/JimageClassPackage.java
* @run driver SharedPackages

@ -27,9 +27,7 @@
* @summary AppCDS handling of signed JAR.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/Hello.java
* @run driver SignedJar
*/

@ -27,8 +27,7 @@
* @summary If -Djava.system.class.loader=xxx is specified in command-line, disable archived non-system classes
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/TestClassLoader.java
* @compile test-classes/ReportMyLoader.java
* @compile test-classes/TrySwitchMyLoader.java

@ -31,9 +31,7 @@
* profiler.
* @requires vm.hasJFR & vm.cds
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/MyThread.java
* @compile test-classes/TestWithProfilerHelper.java
* @run driver TestWithProfiler

@ -27,9 +27,7 @@
* @summary ensure -XX:+TraceClassPaths showing entire expecting app classpath
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/Hello.java
* @compile test-classes/Super.java
* @run driver TraceLongClasspath

@ -27,7 +27,6 @@
* @summary Unverfiable app classes should not be archived.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* @modules jdk.jartool/sun.tools.jar
* java.base/jdk.internal.org.objectweb.asm
* @compile test-classes/Greet.java

@ -27,7 +27,6 @@
* @summary Unverfiable app classes should not be archived.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* @modules jdk.jartool/sun.tools.jar
* java.base/jdk.internal.org.objectweb.asm
* @compile test-classes/Greet.java

@ -27,7 +27,6 @@
* @summary Unverfiable app classes should not be archived.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* @modules jdk.jartool/sun.tools.jar
* java.base/jdk.internal.org.objectweb.asm
* @compile test-classes/Greet.java

@ -27,7 +27,6 @@
* @summary Unverfiable app classes should not be archived.
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* @modules jdk.jartool/sun.tools.jar
* java.base/jdk.internal.org.objectweb.asm
* @compile test-classes/Greet.java

@ -27,9 +27,7 @@
* @summary Test 'iload_w' bytecode in shared class
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/Iloadw.jasm
* @compile test-classes/IloadwMain.java
* @run driver WideIloadTest

@ -27,9 +27,7 @@
* @summary classpath mismatch between dump time and execution time
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/Hello.java
* @run driver WrongClasspath
*/

@ -27,9 +27,7 @@
* @summary Test -Xshare:auto for AppCDS
* @requires vm.cds
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/Hello.java
* @run driver XShareAutoWithChangedJar
*/

@ -27,9 +27,6 @@
* @summary Test primitive box caches integrity in various scenarios (IntegerCache etc)
* @requires vm.cds.archived.java.heap
* @library /test/jdk/lib/testlibrary /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @build sun.hotspot.WhiteBox
* @compile CheckIntegerCacheApp.java
* @run driver ClassFileInstaller -jar boxCache.jar CheckIntegerCacheApp

@ -27,9 +27,6 @@
* @summary Test archived system module sub-graph and verify objects are archived.
* @requires vm.cds.archived.java.heap
* @library /test/jdk/lib/testlibrary /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @build sun.hotspot.WhiteBox
* @compile CheckArchivedModuleApp.java
* @run driver ClassFileInstaller -jar app.jar CheckArchivedModuleApp

@ -27,9 +27,6 @@
* @summary Compare archived system modules with non-archived.
* @requires vm.cds.archived.java.heap
* @library /test/jdk/lib/testlibrary /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @compile PrintSystemModulesApp.java
* @run driver ClassFileInstaller -jar app.jar PrintSystemModulesApp
* @run driver ArchivedModuleCompareTest

@ -26,10 +26,6 @@
* @summary Test archived module graph with custom runtime image
* @requires vm.cds.archived.java.heap
* @library /test/jdk/lib/testlibrary /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.module
* java.management
* jdk.jlink
* jdk.compiler
* @build sun.hotspot.WhiteBox
* @compile CheckArchivedModuleApp.java
* @run driver ClassFileInstaller -jar app.jar CheckArchivedModuleApp

@ -28,9 +28,6 @@
* @requires vm.cds.archived.java.heap
* @requires vm.cds.custom.loaders
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* @modules java.management
* jdk.jartool/sun.tools.jar
* @build sun.hotspot.WhiteBox
* @compile CheckCachedMirrorApp.java
* @compile ../test-classes/Hello.java

@ -28,9 +28,6 @@
* @requires vm.cds
* @requires vm.cds.custom.loaders
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* @modules java.management
* jdk.jartool/sun.tools.jar
* @build sun.hotspot.WhiteBox
* @compile CheckCachedResolvedReferencesApp.java
* @compile ../test-classes/Hello.java

@ -28,9 +28,7 @@
* @bug 8186789
* @requires vm.cds.archived.java.heap
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* @modules java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile MyOuter.java MyException.java
* @run driver DumpTimeVerifyFailure
*/

@ -27,9 +27,6 @@
* @summary
* @requires vm.cds.archived.java.heap
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* @modules java.management
* jdk.jartool/sun.tools.jar
* @build sun.hotspot.WhiteBox
* @compile GCStressApp.java
* @run driver ClassFileInstaller -jar gcstress.jar GCStressApp

@ -27,9 +27,6 @@
* @summary Test archived mirror with reference fields
* @requires vm.cds.archived.java.heap
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* @modules java.management
* jdk.jartool/sun.tools.jar
* @build sun.hotspot.WhiteBox
* @compile MirrorWithReferenceFieldsApp.java
* @run driver ClassFileInstaller -jar app.jar MirrorWithReferenceFieldsApp

@ -31,9 +31,7 @@
* vm options.
* @requires (vm.gc=="null")
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* @modules java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile ../test-classes/Hello.java
* @run driver OpenArchiveRegion
*/

@ -27,9 +27,6 @@
* @summary Test archived primitive type mirrors
* @requires vm.cds.archived.java.heap
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* @modules java.management
* jdk.jartool/sun.tools.jar
* @build sun.hotspot.WhiteBox
* @compile PrimitiveTypesApp.java
* @run driver ClassFileInstaller -jar app.jar PrimitiveTypesApp FieldsTest

@ -27,9 +27,6 @@
* @summary Redefine shared class. GC should not cause crash with cached resolved_references.
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds /test/hotspot/jtreg/runtime/cds/appcds/test-classes /test/hotspot/jtreg/runtime/cds/appcds/jvmti
* @requires vm.cds.archived.java.heap
* @modules java.base/jdk.internal.misc
* jdk.jartool/sun.tools.jar
* java.management
* @build sun.hotspot.WhiteBox
* RedefineClassApp
* InstrumentationClassFileTransformer

@ -25,7 +25,6 @@
* @test
* @summary Make sure CDS works with a minimal test case that uses a CONSTANT_Dynamic constant-pool entry
* @requires (vm.cds)
* @modules java.base/jdk.internal.misc
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @build CondyHello
* @build sun.hotspot.WhiteBox CondyHelloTest CondyHelloApp

@ -29,9 +29,7 @@
* @requires vm.cds
* @requires vm.cds.custom.loaders
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile ../test-classes/Hello.java test-classes/CustomLoadee.java test-classes/CustomLoadee2.java
* test-classes/CustomInterface2_ia.java test-classes/CustomInterface2_ib.java
* @run driver ClassListFormatA

@ -29,9 +29,7 @@
* @requires vm.cds
* @requires vm.cds.custom.loaders
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile ../test-classes/Hello.java test-classes/CustomLoadee.java test-classes/CustomLoadee2.java
* test-classes/CustomInterface2_ia.java test-classes/CustomInterface2_ib.java
* @run driver ClassListFormatB

@ -29,9 +29,7 @@
* @requires vm.cds
* @requires vm.cds.custom.loaders
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile ../test-classes/Hello.java test-classes/CustomLoadee.java test-classes/CustomLoadee2.java
* test-classes/CustomInterface2_ia.java test-classes/CustomInterface2_ib.java
* @run driver ClassListFormatC

@ -29,9 +29,7 @@
* @requires vm.cds
* @requires vm.cds.custom.loaders
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile ../test-classes/Hello.java test-classes/CustomLoadee.java test-classes/CustomLoadee2.java
* test-classes/CustomInterface2_ia.java test-classes/CustomInterface2_ib.java
* @run driver ClassListFormatD

@ -29,9 +29,7 @@
* @requires vm.cds
* @requires vm.cds.custom.loaders
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile ../test-classes/Hello.java test-classes/CustomLoadee.java test-classes/CustomLoadee2.java
* test-classes/CustomInterface2_ia.java test-classes/CustomInterface2_ib.java
* @run driver ClassListFormatE

@ -28,8 +28,6 @@
* @requires vm.cds
* @requires vm.cds.custom.loaders
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds /runtime/testlibrary
* @modules java.base/jdk.internal.misc
* java.management
* @compile test-classes/HelloUnload.java test-classes/CustomLoadee.java
* @build sun.hotspot.WhiteBox ClassUnloadCommon
* @run driver ClassFileInstaller -jar hello.jar HelloUnload ClassUnloadCommon ClassUnloadCommon$1 ClassUnloadCommon$TestFailure

@ -29,9 +29,7 @@
* @requires vm.cds
* @requires vm.cds.custom.loaders
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/LoaderSegregation.java
* test-classes/CustomLoadee.java test-classes/CustomLoadee2.java
* test-classes/CustomInterface2_ia.java test-classes/CustomInterface2_ib.java

@ -28,9 +28,7 @@
* @requires vm.cds
* @requires vm.cds.custom.loaders
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile ../test-classes/ParallelLoad.java ../test-classes/ParallelClasses.java
* @run driver ParallelTestMultiFP
*/

@ -28,9 +28,7 @@
* @requires vm.cds
* @requires vm.cds.custom.loaders
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile ../test-classes/ParallelLoad.java ../test-classes/ParallelClasses.java
* @run driver ParallelTestSingleFP
*/

@ -28,9 +28,7 @@
* @requires vm.cds
* @requires vm.cds.custom.loaders
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile ClassListFormatBase.java ../test-classes/Hello.java test-classes/InProhibitedPkg.java
* @run driver ProhibitedPackageNamesTest
*/

@ -30,9 +30,7 @@
* @requires vm.cds.custom.loaders
*
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/ProtDomain.java
* @run driver ProtectionDomain
*/

@ -30,9 +30,7 @@
* @requires vm.cds.custom.loaders
*
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/CustomLoadee.java
* test-classes/CustomLoadee3.java
* test-classes/SameNameUnrelatedLoaders.java

@ -28,9 +28,7 @@
* @requires vm.cds
* @requires vm.cds.custom.loaders
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/UnintendedLoaders.java test-classes/CustomLoadee.java
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox

@ -30,9 +30,7 @@
* @requires vm.cds.custom.loaders
* @requires vm.opt.final.ClassUnloading
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds /test/hotspot/jtreg/runtime/testlibrary
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @build sun.hotspot.WhiteBox ClassUnloadCommon
* @compile test-classes/UnloadUnregisteredLoader.java test-classes/CustomLoadee.java
* @run driver ClassFileInstaller sun.hotspot.WhiteBox

@ -27,9 +27,7 @@
* @summary Ensure that support for AppCDS custom class loaders are not enabled on unsupported platforms.
* @requires vm.cds
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/SimpleHello.java
* @run driver UnsupportedPlatforms
*/

@ -27,9 +27,7 @@
* @summary At run time, it is OK to append new elements to the classpath that was used at dump time.
* @requires vm.cds
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile ../test-classes/Hello.java
* @compile ../test-classes/HelloMore.java
* @run driver AppendClasspath

@ -27,8 +27,7 @@
* @summary The DynamicDumpShareSpaces flag is internal, setting it at the command line should have no effect.
* @requires vm.cds
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile ../test-classes/Hello.java
* @run driver DynamicFlag
*/

@ -38,7 +38,6 @@ import java.util.ArrayList;
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds /test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/test-classes
* @build LoadClasses
* @build sun.hotspot.WhiteBox
* @modules jdk.jartool/sun.tools.jar
* @run driver ClassFileInstaller -jar loadclasses.jar LoadClasses
* @run driver ClassFileInstaller -jar whitebox.jar sun.hotspot.WhiteBox
* @run driver/timeout=500 DynamicLotsOfClasses

@ -28,7 +28,6 @@
* @requires vm.cds
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds /test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/test-classes
* @build TestJIT
* @modules jdk.jartool/sun.tools.jar
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller -jar WhiteBox.jar sun.hotspot.WhiteBox
* @run driver ClassFileInstaller -jar testjit.jar TestJIT

@ -26,9 +26,7 @@
* @test
* @requires vm.cds
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules jdk.compiler
* jdk.jartool/sun.tools.jar
* jdk.jlink
* @modules jdk.jartool/sun.tools.jar
* @run driver MainModuleOnly
* @summary Test some scenarios with a main modular jar specified in the --module-path and -cp options in the command line.
*/

@ -27,9 +27,7 @@
* @summary Test relative paths specified in the -cp.
* @requires vm.cds
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @compile ../test-classes/Hello.java
* @compile ../test-classes/HelloMore.java
* @run driver RelativePath

@ -32,9 +32,6 @@
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds /test/hotspot/jtreg/runtime/cds/appcds/test-classes
* @requires vm.cds
* @requires vm.flavor != "minimal"
* @modules java.base/jdk.internal.misc
* jdk.jartool/sun.tools.jar
* java.management
* @build AnonVmClassesDuringDumpTransformer Hello
* @run main/othervm AnonVmClassesDuringDump
*/

@ -28,9 +28,6 @@
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds /test/hotspot/jtreg/runtime/cds/appcds/test-classes
* @requires vm.cds
* @requires vm.flavor != "minimal"
* @modules java.base/jdk.internal.misc
* jdk.jartool/sun.tools.jar
* java.management
* @build GCDuringDumpTransformer Hello
* @run main/othervm GCDuringDump
*/

@ -28,9 +28,7 @@
* option for testing the interaction with GC and shared strings.
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds /test/hotspot/jtreg/runtime/cds/appcds/test-classes
* @requires vm.cds.archived.java.heap
* @modules java.base/jdk.internal.misc
* jdk.jartool/sun.tools.jar
* java.management
* @modules jdk.jartool/sun.tools.jar
* @build sun.hotspot.WhiteBox GCDuringDumpTransformer GCSharedStringsDuringDumpWb
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm/timeout=480 GCSharedStringsDuringDump

@ -28,9 +28,6 @@
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds /test/hotspot/jtreg/runtime/cds/appcds/test-classes
* @requires vm.cds.archived.java.heap
* @requires vm.flavor != "minimal"
* @modules java.base/jdk.internal.misc
* jdk.jartool/sun.tools.jar
* java.management
* @build HumongousDuringDumpTransformer Hello
* @run main/othervm/timeout=240 HumongousDuringDump
*/

@ -27,10 +27,7 @@
* @summary Abort dumping if any of the new jigsaw vm options is specified.
* @requires vm.cds
* @library /test/lib ..
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* jdk.internal.jvmstat/sun.jvmstat.monitor
* @modules jdk.jartool/sun.tools.jar
* @compile ../test-classes/Hello.java
* @run driver CheckUnsupportedDumpingOptions
*/

@ -28,10 +28,7 @@
*
* @requires vm.cds & !vm.graal.enabled
* @library /test/lib ..
* @modules java.base/jdk.internal.misc
* java.management
* jdk.jartool/sun.tools.jar
* jdk.internal.jvmstat/sun.jvmstat.monitor
* @modules jdk.jartool/sun.tools.jar
* @compile ../test-classes/Hello.java ../test-classes/HelloMore.java
* @run driver JigsawOptionsCombo
*/

@ -31,8 +31,7 @@
* @library ../..
* @library /test/hotspot/jtreg/testlibrary
* @library /test/lib
* @modules java.base/jdk.internal.misc
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @build PatchMain
* @run driver AppClassInCP
*/

@ -31,8 +31,7 @@
* @library ../..
* @library /test/hotspot/jtreg/testlibrary
* @library /test/lib
* @modules java.base/jdk.internal.misc
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @build PatchMain
* @run driver CustomPackage
*/

@ -31,8 +31,7 @@
* @library ../..
* @library /test/hotspot/jtreg/testlibrary
* @library /test/lib
* @modules java.base/jdk.internal.misc
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @build PatchMain
* @run driver MismatchedPatchModule
*/

@ -30,8 +30,7 @@
* @library ../..
* @library /test/hotspot/jtreg/testlibrary
* @library /test/lib
* @modules java.base/jdk.internal.misc
* jdk.jartool/sun.tools.jar
* @modules jdk.jartool/sun.tools.jar
* @build PatchMain
* @run driver PatchDir
*/

Some files were not shown because too many files have changed in this diff Show More