mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8273522: Rename test property vm.cds.archived.java.heap to vm.cds.write.archived.java.heap
Reviewed-by: minqi, ccheung, mseledtsov
This commit is contained in:
parent
f42b92790a
commit
922e86f4ff
40 changed files with 50 additions and 53 deletions
|
@ -155,7 +155,6 @@ public:
|
||||||
|
|
||||||
// Can this VM write heap regions into the CDS archive? Currently only G1+compressed{oops,cp}
|
// Can this VM write heap regions into the CDS archive? Currently only G1+compressed{oops,cp}
|
||||||
static bool can_write() {
|
static bool can_write() {
|
||||||
assert(DumpSharedSpaces, "only when writing static archive");
|
|
||||||
CDS_JAVA_HEAP_ONLY(return (UseG1GC && UseCompressedOops && UseCompressedClassPointers);)
|
CDS_JAVA_HEAP_ONLY(return (UseG1GC && UseCompressedOops && UseCompressedClassPointers);)
|
||||||
NOT_CDS_JAVA_HEAP(return false;)
|
NOT_CDS_JAVA_HEAP(return false;)
|
||||||
}
|
}
|
||||||
|
|
|
@ -2001,8 +2001,8 @@ WB_ENTRY(jboolean, WB_IsJVMCISupportedByGC(JNIEnv* env))
|
||||||
#endif
|
#endif
|
||||||
WB_END
|
WB_END
|
||||||
|
|
||||||
WB_ENTRY(jboolean, WB_IsJavaHeapArchiveSupported(JNIEnv* env))
|
WB_ENTRY(jboolean, WB_CanWriteJavaHeapArchive(JNIEnv* env))
|
||||||
return HeapShared::can_use();
|
return HeapShared::can_write();
|
||||||
WB_END
|
WB_END
|
||||||
|
|
||||||
|
|
||||||
|
@ -2640,7 +2640,7 @@ static JNINativeMethod methods[] = {
|
||||||
{CC"isJFRIncluded", CC"()Z", (void*)&WB_IsJFRIncluded },
|
{CC"isJFRIncluded", CC"()Z", (void*)&WB_IsJFRIncluded },
|
||||||
{CC"isC2OrJVMCIIncluded", CC"()Z", (void*)&WB_isC2OrJVMCIIncluded },
|
{CC"isC2OrJVMCIIncluded", CC"()Z", (void*)&WB_isC2OrJVMCIIncluded },
|
||||||
{CC"isJVMCISupportedByGC", CC"()Z", (void*)&WB_IsJVMCISupportedByGC},
|
{CC"isJVMCISupportedByGC", CC"()Z", (void*)&WB_IsJVMCISupportedByGC},
|
||||||
{CC"isJavaHeapArchiveSupported", CC"()Z", (void*)&WB_IsJavaHeapArchiveSupported },
|
{CC"canWriteJavaHeapArchive", CC"()Z", (void*)&WB_CanWriteJavaHeapArchive },
|
||||||
{CC"cdsMemoryMappingFailed", CC"()Z", (void*)&WB_CDSMemoryMappingFailed },
|
{CC"cdsMemoryMappingFailed", CC"()Z", (void*)&WB_CDSMemoryMappingFailed },
|
||||||
|
|
||||||
{CC"clearInlineCaches0", CC"(Z)V", (void*)&WB_ClearInlineCaches },
|
{CC"clearInlineCaches0", CC"(Z)V", (void*)&WB_ClearInlineCaches },
|
||||||
|
|
|
@ -67,7 +67,7 @@ requires.properties= \
|
||||||
vm.rtm.compiler \
|
vm.rtm.compiler \
|
||||||
vm.cds \
|
vm.cds \
|
||||||
vm.cds.custom.loaders \
|
vm.cds.custom.loaders \
|
||||||
vm.cds.archived.java.heap \
|
vm.cds.write.archived.java.heap \
|
||||||
vm.jvmti \
|
vm.jvmti \
|
||||||
vm.graal.enabled \
|
vm.graal.enabled \
|
||||||
vm.compiler1.enabled \
|
vm.compiler1.enabled \
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
* @test
|
* @test
|
||||||
* @summary Check to make sure that shared strings in the bootstrap CDS archive
|
* @summary Check to make sure that shared strings in the bootstrap CDS archive
|
||||||
* are actually shared
|
* are actually shared
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @requires vm.flagless
|
* @requires vm.flagless
|
||||||
* @library /test/lib
|
* @library /test/lib
|
||||||
* @build SharedStringsWb sun.hotspot.WhiteBox
|
* @build SharedStringsWb sun.hotspot.WhiteBox
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/**
|
/**
|
||||||
* @test SharedStringsDedup
|
* @test SharedStringsDedup
|
||||||
* @summary Test -Xshare:auto with shared strings and -XX:+UseStringDeduplication
|
* @summary Test -Xshare:auto with shared strings and -XX:+UseStringDeduplication
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @library /test/lib
|
* @library /test/lib
|
||||||
* @run driver SharedStringsDedup
|
* @run driver SharedStringsDedup
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/**
|
/**
|
||||||
* @test SharedStringsAuto
|
* @test SharedStringsAuto
|
||||||
* @summary Test -Xshare:auto with shared strings.
|
* @summary Test -Xshare:auto with shared strings.
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @library /test/lib
|
* @library /test/lib
|
||||||
* @run driver SharedStringsRunAuto
|
* @run driver SharedStringsRunAuto
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @test CommandLineFlagCombo
|
* @test CommandLineFlagCombo
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @comment This test explicitly chooses the type of GC to be used by sub-processes. It may conflict with the GC type set
|
* @comment This test explicitly chooses the type of GC to be used by sub-processes. It may conflict with the GC type set
|
||||||
* via the -vmoptions command line option of JTREG. vm.gc==null will help the test case to discard the explicitly passed
|
* via the -vmoptions command line option of JTREG. vm.gc==null will help the test case to discard the explicitly passed
|
||||||
* vm options.
|
* vm options.
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary Test primitive box caches integrity in various scenarios (IntegerCache etc)
|
* @summary Test primitive box caches integrity in various scenarios (IntegerCache etc)
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @library /test/jdk/lib/testlibrary /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/jdk/lib/testlibrary /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @build sun.hotspot.WhiteBox
|
* @build sun.hotspot.WhiteBox
|
||||||
* @compile CheckIntegerCacheApp.java
|
* @compile CheckIntegerCacheApp.java
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary Test archived system module sub-graph and verify objects are archived.
|
* @summary Test archived system module sub-graph and verify objects are archived.
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @library /test/jdk/lib/testlibrary /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/jdk/lib/testlibrary /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @build sun.hotspot.WhiteBox
|
* @build sun.hotspot.WhiteBox
|
||||||
* @compile CheckArchivedModuleApp.java
|
* @compile CheckArchivedModuleApp.java
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary Compare archived system modules with non-archived.
|
* @summary Compare archived system modules with non-archived.
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @library /test/jdk/lib/testlibrary /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/jdk/lib/testlibrary /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @compile PrintSystemModulesApp.java
|
* @compile PrintSystemModulesApp.java
|
||||||
* @run driver jdk.test.lib.helpers.ClassFileInstaller -jar app.jar PrintSystemModulesApp
|
* @run driver jdk.test.lib.helpers.ClassFileInstaller -jar app.jar PrintSystemModulesApp
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary Test archived module graph with custom runtime image
|
* @summary Test archived module graph with custom runtime image
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @requires vm.flagless
|
* @requires vm.flagless
|
||||||
* @library /test/jdk/lib/testlibrary /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/jdk/lib/testlibrary /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @build sun.hotspot.WhiteBox
|
* @build sun.hotspot.WhiteBox
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary Test archived mirror
|
* @summary Test archived mirror
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @requires vm.cds.custom.loaders
|
* @requires vm.cds.custom.loaders
|
||||||
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @build sun.hotspot.WhiteBox
|
* @build sun.hotspot.WhiteBox
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary Test automatic relocation of archive heap regions dur to heap size changes.
|
* @summary Test automatic relocation of archive heap regions dur to heap size changes.
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @compile ../test-classes/Hello.java
|
* @compile ../test-classes/Hello.java
|
||||||
* @build sun.hotspot.WhiteBox
|
* @build sun.hotspot.WhiteBox
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
* @test
|
* @test
|
||||||
* @summary Dump time should not crash if any class with shared strings fails verification due to missing dependencies.
|
* @summary Dump time should not crash if any class with shared strings fails verification due to missing dependencies.
|
||||||
* @bug 8186789
|
* @bug 8186789
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @compile MyOuter.java MyException.java
|
* @compile MyOuter.java MyException.java
|
||||||
* @run driver DumpTimeVerifyFailure
|
* @run driver DumpTimeVerifyFailure
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
* @test
|
* @test
|
||||||
* @key randomness
|
* @key randomness
|
||||||
* @summary
|
* @summary
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @build sun.hotspot.WhiteBox jdk.test.lib.Utils
|
* @build sun.hotspot.WhiteBox jdk.test.lib.Utils
|
||||||
* @compile GCStressApp.java
|
* @compile GCStressApp.java
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
* @test
|
* @test
|
||||||
* @summary Relocate CDS archived regions to the top of the G1 heap
|
* @summary Relocate CDS archived regions to the top of the G1 heap
|
||||||
* @bug 8214455
|
* @bug 8214455
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @requires (sun.arch.data.model == "64" & os.maxMemory > 4g)
|
* @requires (sun.arch.data.model == "64" & os.maxMemory > 4g)
|
||||||
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @build HeapFragmentationApp
|
* @build HeapFragmentationApp
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary Test archived mirror with reference fields
|
* @summary Test archived mirror with reference fields
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @build sun.hotspot.WhiteBox
|
* @build sun.hotspot.WhiteBox
|
||||||
* @compile MirrorWithReferenceFieldsApp.java
|
* @compile MirrorWithReferenceFieldsApp.java
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary Test open archive heap regions
|
* @summary Test open archive heap regions
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @comment This test explicitly chooses the type of GC to be used by sub-processes. It may conflict with the GC type set
|
* @comment This test explicitly chooses the type of GC to be used by sub-processes. It may conflict with the GC type set
|
||||||
* via the -vmoptions command line option of JTREG. vm.gc==null will help the test case to discard the explicitly passed
|
* via the -vmoptions command line option of JTREG. vm.gc==null will help the test case to discard the explicitly passed
|
||||||
* vm options.
|
* vm options.
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary Test archived primitive type mirrors
|
* @summary Test archived primitive type mirrors
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @build sun.hotspot.WhiteBox
|
* @build sun.hotspot.WhiteBox
|
||||||
* @compile PrimitiveTypesApp.java
|
* @compile PrimitiveTypesApp.java
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
* @test
|
* @test
|
||||||
* @summary Redefine shared class. GC should not cause crash with cached resolved_references.
|
* @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
|
* @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
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @requires vm.jvmti
|
* @requires vm.jvmti
|
||||||
* @build sun.hotspot.WhiteBox
|
* @build sun.hotspot.WhiteBox
|
||||||
* RedefineClassApp
|
* RedefineClassApp
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
* @test
|
* @test
|
||||||
* @summary Out of memory When dumping the CDS archive
|
* @summary Out of memory When dumping the CDS archive
|
||||||
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds /test/hotspot/jtreg/runtime/cds/appcds/test-classes
|
* @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.cds.write.archived.java.heap
|
||||||
* @requires vm.jvmti
|
* @requires vm.jvmti
|
||||||
* @run driver ExceptionDuringDumpAtObjectsInitPhase
|
* @run driver ExceptionDuringDumpAtObjectsInitPhase
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Similar to GCDuringDumping.java, this test adds the -XX:SharedArchiveConfigFile
|
* @summary Similar to GCDuringDumping.java, this test adds the -XX:SharedArchiveConfigFile
|
||||||
* option for testing the interaction with GC and shared strings.
|
* 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
|
* @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.cds.write.archived.java.heap
|
||||||
* @requires vm.jvmti
|
* @requires vm.jvmti
|
||||||
* @build sun.hotspot.WhiteBox
|
* @build sun.hotspot.WhiteBox
|
||||||
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
|
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
* @test
|
* @test
|
||||||
* @summary Test how CDS dumping handles the existence of humongous G1 regions.
|
* @summary Test how CDS dumping handles the existence of humongous G1 regions.
|
||||||
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds /test/hotspot/jtreg/runtime/cds/appcds/test-classes
|
* @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.cds.write.archived.java.heap
|
||||||
* @requires vm.jvmti
|
* @requires vm.jvmti
|
||||||
* @run driver/timeout=240 HumongousDuringDump
|
* @run driver/timeout=240 HumongousDuringDump
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary Exercise GC with shared strings
|
* @summary Exercise GC with shared strings
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @requires vm.gc == null
|
* @requires vm.gc == null
|
||||||
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
|
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
|
||||||
* @build HelloStringGC sun.hotspot.WhiteBox
|
* @build HelloStringGC sun.hotspot.WhiteBox
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @summary Test relevant combinations of command line flags with shared strings
|
* @summary Test relevant combinations of command line flags with shared strings
|
||||||
* @requires vm.cds.archived.java.heap & vm.hasJFR
|
* @requires vm.cds.write.archived.java.heap & vm.hasJFR
|
||||||
* @requires vm.gc == null
|
* @requires vm.gc == null
|
||||||
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @build HelloString
|
* @build HelloString
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
* @test
|
* @test
|
||||||
* @summary Test relevant combinations of command line flags with shared strings
|
* @summary Test relevant combinations of command line flags with shared strings
|
||||||
* @comment A special test excluding the case that requires JFR
|
* @comment A special test excluding the case that requires JFR
|
||||||
* @requires vm.cds.archived.java.heap & !vm.hasJFR
|
* @requires vm.cds.write.archived.java.heap & !vm.hasJFR
|
||||||
* @requires vm.gc == null
|
* @requires vm.gc == null
|
||||||
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @build HelloString
|
* @build HelloString
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
* @test
|
* @test
|
||||||
* @summary Test options that are incompatible with use of shared strings
|
* @summary Test options that are incompatible with use of shared strings
|
||||||
* Also test mismatch in oops encoding between dump time and run time
|
* Also test mismatch in oops encoding between dump time and run time
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @comment This test explicitly chooses the type of GC to be used by sub-processes. It may conflict with the GC type set
|
* @comment This test explicitly chooses the type of GC to be used by sub-processes. It may conflict with the GC type set
|
||||||
* via the -vmoptions command line option of JTREG. vm.gc==null will help the test case to discard the explicitly passed
|
* via the -vmoptions command line option of JTREG. vm.gc==null will help the test case to discard the explicitly passed
|
||||||
* vm options.
|
* vm options.
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @requires (vm.gc=="null")
|
* @requires (vm.gc=="null")
|
||||||
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @build sun.hotspot.WhiteBox
|
* @build sun.hotspot.WhiteBox
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @requires (vm.gc=="null")
|
* @requires (vm.gc=="null")
|
||||||
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @build sun.hotspot.WhiteBox
|
* @build sun.hotspot.WhiteBox
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary Test shared strings together with string intern operation
|
* @summary Test shared strings together with string intern operation
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @requires vm.gc == null
|
* @requires vm.gc == null
|
||||||
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
|
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
|
||||||
* @compile InternStringTest.java
|
* @compile InternStringTest.java
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary Check most common errors in file format
|
* @summary Check most common errors in file format
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @build HelloString
|
* @build HelloString
|
||||||
* @run driver InvalidFileFormat
|
* @run driver InvalidFileFormat
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary Basic shared string test with large pages
|
* @summary Basic shared string test with large pages
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @requires vm.gc == null
|
* @requires vm.gc == null
|
||||||
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @build HelloString
|
* @build HelloString
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary Test locking on shared strings
|
* @summary Test locking on shared strings
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @requires vm.gc == null
|
* @requires vm.gc == null
|
||||||
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
|
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
|
||||||
* @compile LockStringTest.java LockStringValueTest.java
|
* @compile LockStringTest.java LockStringValueTest.java
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary Basic test for shared strings
|
* @summary Basic test for shared strings
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
|
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
|
||||||
* @build HelloString
|
* @build HelloString
|
||||||
* @run driver SharedStringsBasic
|
* @run driver SharedStringsBasic
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary Basic plus test for shared strings
|
* @summary Basic plus test for shared strings
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @requires vm.gc == null
|
* @requires vm.gc == null
|
||||||
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
|
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
|
||||||
* @build HelloStringPlus sun.hotspot.WhiteBox
|
* @build HelloStringPlus sun.hotspot.WhiteBox
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
* @test
|
* @test
|
||||||
* @summary Use a shared string allocated in a humongous G1 region.
|
* @summary Use a shared string allocated in a humongous G1 region.
|
||||||
* @comment -- the following implies that G1 is used (by command-line or by default)
|
* @comment -- the following implies that G1 is used (by command-line or by default)
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
*
|
*
|
||||||
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
|
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
|
||||||
* @build HelloString
|
* @build HelloString
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary Write a lots of shared strings.
|
* @summary Write a lots of shared strings.
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
|
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
|
||||||
* @build HelloString
|
* @build HelloString
|
||||||
* @run driver/timeout=500 SharedStringsStress
|
* @run driver/timeout=500 SharedStringsStress
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @summary White box test for shared strings
|
* @summary White box test for shared strings
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @requires vm.gc == null
|
* @requires vm.gc == null
|
||||||
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @build sun.hotspot.WhiteBox SharedStringsWb
|
* @build sun.hotspot.WhiteBox SharedStringsWb
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
* @test
|
* @test
|
||||||
* @summary Regression test for JDK-8098821
|
* @summary Regression test for JDK-8098821
|
||||||
* @bug 8098821
|
* @bug 8098821
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @requires vm.gc == null
|
* @requires vm.gc == null
|
||||||
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
|
||||||
* @run driver SysDictCrash
|
* @run driver SysDictCrash
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
* @test
|
* @test
|
||||||
* @summary Tests how CDS works when critical library classes are replaced with JVMTI ClassFileLoadHook
|
* @summary Tests how CDS works when critical library classes are replaced with JVMTI ClassFileLoadHook
|
||||||
* @library /test/lib
|
* @library /test/lib
|
||||||
* @requires vm.cds.archived.java.heap
|
* @requires vm.cds.write.archived.java.heap
|
||||||
* @build sun.hotspot.WhiteBox
|
* @build sun.hotspot.WhiteBox
|
||||||
* @run driver jdk.test.lib.helpers.ClassFileInstaller -jar whitebox.jar sun.hotspot.WhiteBox
|
* @run driver jdk.test.lib.helpers.ClassFileInstaller -jar whitebox.jar sun.hotspot.WhiteBox
|
||||||
* @run main/othervm/native ReplaceCriticalClassesForSubgraphs
|
* @run main/othervm/native ReplaceCriticalClassesForSubgraphs
|
||||||
|
|
|
@ -110,7 +110,7 @@ public class VMProps implements Callable<Map<String, String>> {
|
||||||
// vm.cds is true if the VM is compiled with cds support.
|
// vm.cds is true if the VM is compiled with cds support.
|
||||||
map.put("vm.cds", this::vmCDS);
|
map.put("vm.cds", this::vmCDS);
|
||||||
map.put("vm.cds.custom.loaders", this::vmCDSForCustomLoaders);
|
map.put("vm.cds.custom.loaders", this::vmCDSForCustomLoaders);
|
||||||
map.put("vm.cds.archived.java.heap", this::vmCDSForArchivedJavaHeap);
|
map.put("vm.cds.write.archived.java.heap", this::vmCDSCanWriteArchivedJavaHeap);
|
||||||
// vm.graal.enabled is true if Graal is used as JIT
|
// vm.graal.enabled is true if Graal is used as JIT
|
||||||
map.put("vm.graal.enabled", this::isGraalEnabled);
|
map.put("vm.graal.enabled", this::isGraalEnabled);
|
||||||
map.put("vm.compiler1.enabled", this::isCompiler1Enabled);
|
map.put("vm.compiler1.enabled", this::isCompiler1Enabled);
|
||||||
|
@ -407,12 +407,10 @@ public class VMProps implements Callable<Map<String, String>> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check for CDS support for archived Java heap regions.
|
* @return true if this VM can write Java heap objects into the CDS archive
|
||||||
*
|
|
||||||
* @return true if CDS provides support for archive Java heap regions in the VM to be tested.
|
|
||||||
*/
|
*/
|
||||||
protected String vmCDSForArchivedJavaHeap() {
|
protected String vmCDSCanWriteArchivedJavaHeap() {
|
||||||
return "" + ("true".equals(vmCDS()) && WB.isJavaHeapArchiveSupported());
|
return "" + ("true".equals(vmCDS()) && WB.canWriteJavaHeapArchive());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -595,7 +595,7 @@ public class WhiteBox {
|
||||||
public native boolean isSharedInternedString(String s);
|
public native boolean isSharedInternedString(String s);
|
||||||
public native boolean isCDSIncluded();
|
public native boolean isCDSIncluded();
|
||||||
public native boolean isJFRIncluded();
|
public native boolean isJFRIncluded();
|
||||||
public native boolean isJavaHeapArchiveSupported();
|
public native boolean canWriteJavaHeapArchive();
|
||||||
public native Object getResolvedReferences(Class<?> c);
|
public native Object getResolvedReferences(Class<?> c);
|
||||||
public native void linkClass(Class<?> c);
|
public native void linkClass(Class<?> c);
|
||||||
public native boolean areOpenArchiveHeapObjectsMapped();
|
public native boolean areOpenArchiveHeapObjectsMapped();
|
||||||
|
|
|
@ -596,7 +596,7 @@ public class WhiteBox {
|
||||||
public native boolean isSharedInternedString(String s);
|
public native boolean isSharedInternedString(String s);
|
||||||
public native boolean isCDSIncluded();
|
public native boolean isCDSIncluded();
|
||||||
public native boolean isJFRIncluded();
|
public native boolean isJFRIncluded();
|
||||||
public native boolean isJavaHeapArchiveSupported();
|
public native boolean canWriteJavaHeapArchive();
|
||||||
public native Object getResolvedReferences(Class<?> c);
|
public native Object getResolvedReferences(Class<?> c);
|
||||||
public native void linkClass(Class<?> c);
|
public native void linkClass(Class<?> c);
|
||||||
public native boolean areOpenArchiveHeapObjectsMapped();
|
public native boolean areOpenArchiveHeapObjectsMapped();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue