Skip to content

Commit 6398e46

Browse files
committed
8273522: Rename test property vm.cds.archived.java.heap to vm.cds.write.archived.java.heap
Reviewed-by: lucy Backport-of: 922e86f4ff28c7b17af8e7b5867a40fc76b7fdd7
1 parent 4ebd8b3 commit 6398e46

38 files changed

+48
-50
lines changed

src/hotspot/share/prims/whitebox.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1962,7 +1962,7 @@ WB_ENTRY(jboolean, WB_IsJVMCISupportedByGC(JNIEnv* env))
19621962
#endif
19631963
WB_END
19641964

1965-
WB_ENTRY(jboolean, WB_IsJavaHeapArchiveSupported(JNIEnv* env))
1965+
WB_ENTRY(jboolean, WB_CanWriteJavaHeapArchive(JNIEnv* env))
19661966
return HeapShared::is_heap_object_archiving_allowed();
19671967
WB_END
19681968

@@ -2585,7 +2585,7 @@ static JNINativeMethod methods[] = {
25852585
{CC"isDTraceIncluded", CC"()Z", (void*)&WB_IsDTraceIncluded },
25862586
{CC"isC2OrJVMCIIncluded", CC"()Z", (void*)&WB_isC2OrJVMCIIncluded },
25872587
{CC"isJVMCISupportedByGC", CC"()Z", (void*)&WB_IsJVMCISupportedByGC},
2588-
{CC"isJavaHeapArchiveSupported", CC"()Z", (void*)&WB_IsJavaHeapArchiveSupported },
2588+
{CC"canWriteJavaHeapArchive", CC"()Z", (void*)&WB_CanWriteJavaHeapArchive },
25892589
{CC"cdsMemoryMappingFailed", CC"()Z", (void*)&WB_CDSMemoryMappingFailed },
25902590

25912591
{CC"clearInlineCaches0", CC"(Z)V", (void*)&WB_ClearInlineCaches },

test/hotspot/jtreg/TEST.ROOT

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ requires.properties= \
6868
vm.rtm.compiler \
6969
vm.cds \
7070
vm.cds.custom.loaders \
71-
vm.cds.archived.java.heap \
71+
vm.cds.write.archived.java.heap \
7272
vm.jvmti \
7373
vm.graal.enabled \
7474
vm.compiler1.enabled \

test/hotspot/jtreg/runtime/cds/SharedStrings.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* @test
2626
* @summary Check to make sure that shared strings in the bootstrap CDS archive
2727
* are actually shared
28-
* @requires vm.cds.archived.java.heap
28+
* @requires vm.cds.write.archived.java.heap
2929
* @library /test/lib
3030
* @build SharedStringsWb jdk.test.whitebox.WhiteBox
3131
* @run driver jdk.test.lib.helpers.ClassFileInstaller -jar whitebox.jar jdk.test.whitebox.WhiteBox

test/hotspot/jtreg/runtime/cds/SharedStringsDedup.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/**
2525
* @test SharedStringsDedup
2626
* @summary Test -Xshare:auto with shared strings and -XX:+UseStringDeduplication
27-
* @requires vm.cds.archived.java.heap
27+
* @requires vm.cds.write.archived.java.heap
2828
* @library /test/lib
2929
* @run driver SharedStringsDedup
3030
*/

test/hotspot/jtreg/runtime/cds/SharedStringsRunAuto.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/**
2525
* @test SharedStringsAuto
2626
* @summary Test -Xshare:auto with shared strings.
27-
* @requires vm.cds.archived.java.heap
27+
* @requires vm.cds.write.archived.java.heap
2828
* @library /test/lib
2929
* @run driver SharedStringsRunAuto
3030
*/

test/hotspot/jtreg/runtime/cds/appcds/CommandLineFlagCombo.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
/*
2626
* @test CommandLineFlagCombo
27-
* @requires vm.cds.archived.java.heap
27+
* @requires vm.cds.write.archived.java.heap
2828
* @comment This test explicitly chooses the type of GC to be used by sub-processes. It may conflict with the GC type set
2929
* via the -vmoptions command line option of JTREG. vm.gc==null will help the test case to discard the explicitly passed
3030
* vm options.

test/hotspot/jtreg/runtime/cds/appcds/cacheObject/ArchivedIntegerCacheTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/*
2626
* @test
2727
* @summary Test primitive box caches integrity in various scenarios (IntegerCache etc)
28-
* @requires vm.cds.archived.java.heap
28+
* @requires vm.cds.write.archived.java.heap
2929
* @library /test/jdk/lib/testlibrary /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3030
* @build jdk.test.whitebox.WhiteBox
3131
* @compile CheckIntegerCacheApp.java

test/hotspot/jtreg/runtime/cds/appcds/cacheObject/ArchivedModuleComboTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/*
2626
* @test
2727
* @summary Test archived system module sub-graph and verify objects are archived.
28-
* @requires vm.cds.archived.java.heap
28+
* @requires vm.cds.write.archived.java.heap
2929
* @library /test/jdk/lib/testlibrary /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3030
* @build jdk.test.whitebox.WhiteBox
3131
* @compile CheckArchivedModuleApp.java

test/hotspot/jtreg/runtime/cds/appcds/cacheObject/ArchivedModuleCompareTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/*
2626
* @test
2727
* @summary Compare archived system modules with non-archived.
28-
* @requires vm.cds.archived.java.heap
28+
* @requires vm.cds.write.archived.java.heap
2929
* @library /test/jdk/lib/testlibrary /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3030
* @compile PrintSystemModulesApp.java
3131
* @run driver jdk.test.lib.helpers.ClassFileInstaller -jar app.jar PrintSystemModulesApp

test/hotspot/jtreg/runtime/cds/appcds/cacheObject/ArchivedModuleWithCustomImageTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/*
2525
* @test
2626
* @summary Test archived module graph with custom runtime image
27-
* @requires vm.cds.archived.java.heap
27+
* @requires vm.cds.write.archived.java.heap
2828
* @library /test/jdk/lib/testlibrary /test/lib /test/hotspot/jtreg/runtime/cds/appcds
2929
* @build jdk.test.whitebox.WhiteBox
3030
* @compile CheckArchivedModuleApp.java

test/hotspot/jtreg/runtime/cds/appcds/cacheObject/CheckCachedMirrorTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/*
2626
* @test
2727
* @summary Test archived mirror
28-
* @requires vm.cds.archived.java.heap
28+
* @requires vm.cds.write.archived.java.heap
2929
* @requires vm.cds.custom.loaders
3030
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3131
* @build jdk.test.whitebox.WhiteBox

test/hotspot/jtreg/runtime/cds/appcds/cacheObject/DifferentHeapSizes.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/*
2626
* @test
2727
* @summary Test automatic relocation of archive heap regions dur to heap size changes.
28-
* @requires vm.cds.archived.java.heap
28+
* @requires vm.cds.write.archived.java.heap
2929
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3030
* @compile ../test-classes/Hello.java
3131
* @build jdk.test.whitebox.WhiteBox

test/hotspot/jtreg/runtime/cds/appcds/cacheObject/DumpTimeVerifyFailure.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -26,7 +26,7 @@
2626
* @test
2727
* @summary Dump time should not crash if any class with shared strings fails verification due to missing dependencies.
2828
* @bug 8186789
29-
* @requires vm.cds.archived.java.heap
29+
* @requires vm.cds.write.archived.java.heap
3030
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3131
* @compile MyOuter.java MyException.java
3232
* @run driver DumpTimeVerifyFailure

test/hotspot/jtreg/runtime/cds/appcds/cacheObject/GCStressTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @test
2727
* @key randomness
2828
* @summary
29-
* @requires vm.cds.archived.java.heap
29+
* @requires vm.cds.write.archived.java.heap
3030
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3131
* @build jdk.test.whitebox.WhiteBox jdk.test.lib.Utils
3232
* @compile GCStressApp.java

test/hotspot/jtreg/runtime/cds/appcds/cacheObject/HeapFragmentationTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @test
2727
* @summary Relocate CDS archived regions to the top of the G1 heap
2828
* @bug 8214455
29-
* @requires vm.cds.archived.java.heap
29+
* @requires vm.cds.write.archived.java.heap
3030
* @requires (sun.arch.data.model == "64" & os.maxMemory > 4g)
3131
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3232
* @build HeapFragmentationApp

test/hotspot/jtreg/runtime/cds/appcds/cacheObject/MirrorWithReferenceFieldsTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/*
2626
* @test
2727
* @summary Test archived mirror with reference fields
28-
* @requires vm.cds.archived.java.heap
28+
* @requires vm.cds.write.archived.java.heap
2929
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3030
* @build jdk.test.whitebox.WhiteBox
3131
* @compile MirrorWithReferenceFieldsApp.java

test/hotspot/jtreg/runtime/cds/appcds/cacheObject/OpenArchiveRegion.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,7 +25,7 @@
2525
/*
2626
* @test
2727
* @summary Test open archive heap regions
28-
* @requires vm.cds.archived.java.heap
28+
* @requires vm.cds.write.archived.java.heap
2929
* @comment This test explicitly chooses the type of GC to be used by sub-processes. It may conflict with the GC type set
3030
* via the -vmoptions command line option of JTREG. vm.gc==null will help the test case to discard the explicitly passed
3131
* vm options.

test/hotspot/jtreg/runtime/cds/appcds/cacheObject/PrimitiveTypesTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/*
2626
* @test
2727
* @summary Test archived primitive type mirrors
28-
* @requires vm.cds.archived.java.heap
28+
* @requires vm.cds.write.archived.java.heap
2929
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3030
* @build jdk.test.whitebox.WhiteBox
3131
* @compile PrimitiveTypesApp.java

test/hotspot/jtreg/runtime/cds/appcds/cacheObject/RedefineClassTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @test
2727
* @summary Redefine shared class. GC should not cause crash with cached resolved_references.
2828
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds /test/hotspot/jtreg/runtime/cds/appcds/test-classes /test/hotspot/jtreg/runtime/cds/appcds/jvmti
29-
* @requires vm.cds.archived.java.heap
29+
* @requires vm.cds.write.archived.java.heap
3030
* @requires vm.jvmti
3131
* @build jdk.test.whitebox.WhiteBox
3232
* RedefineClassApp

test/hotspot/jtreg/runtime/cds/appcds/javaldr/ExceptionDuringDumpAtObjectsInitPhase.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @test
2727
* @summary Out of memory When dumping the CDS archive
2828
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds /test/hotspot/jtreg/runtime/cds/appcds/test-classes
29-
* @requires vm.cds.archived.java.heap
29+
* @requires vm.cds.write.archived.java.heap
3030
* @requires vm.jvmti
3131
* @run driver ExceptionDuringDumpAtObjectsInitPhase
3232
*/

test/hotspot/jtreg/runtime/cds/appcds/javaldr/GCSharedStringsDuringDump.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* @summary Similar to GCDuringDumping.java, this test adds the -XX:SharedArchiveConfigFile
2828
* option for testing the interaction with GC and shared strings.
2929
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds /test/hotspot/jtreg/runtime/cds/appcds/test-classes
30-
* @requires vm.cds.archived.java.heap
30+
* @requires vm.cds.write.archived.java.heap
3131
* @requires vm.jvmti
3232
* @build jdk.test.whitebox.WhiteBox
3333
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox

test/hotspot/jtreg/runtime/cds/appcds/javaldr/HumongousDuringDump.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @test
2727
* @summary Test how CDS dumping handles the existence of humongous G1 regions.
2828
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds /test/hotspot/jtreg/runtime/cds/appcds/test-classes
29-
* @requires vm.cds.archived.java.heap
29+
* @requires vm.cds.write.archived.java.heap
3030
* @requires vm.jvmti
3131
* @run driver/timeout=240 HumongousDuringDump
3232
*/

test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/ExerciseGC.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/*
2626
* @test
2727
* @summary Exercise GC with shared strings
28-
* @requires vm.cds.archived.java.heap
28+
* @requires vm.cds.write.archived.java.heap
2929
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
3030
* @build HelloStringGC jdk.test.whitebox.WhiteBox
3131
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox

test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/FlagCombo.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/**
2626
* @test
2727
* @summary Test relevant combinations of command line flags with shared strings
28-
* @requires vm.cds.archived.java.heap & vm.hasJFR
28+
* @requires vm.cds.write.archived.java.heap & vm.hasJFR
2929
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3030
* @build HelloString
3131
* @run driver FlagCombo
@@ -35,7 +35,7 @@
3535
* @test
3636
* @summary Test relevant combinations of command line flags with shared strings
3737
* @comment A special test excluding the case that requires JFR
38-
* @requires vm.cds.archived.java.heap & !vm.hasJFR
38+
* @requires vm.cds.write.archived.java.heap & !vm.hasJFR
3939
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
4040
* @build HelloString
4141
* @run driver FlagCombo noJfr

test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/IncompatibleOptions.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* @test
3232
* @summary Test options that are incompatible with use of shared strings
3333
* Also test mismatch in oops encoding between dump time and run time
34-
* @requires vm.cds.archived.java.heap
34+
* @requires vm.cds.write.archived.java.heap
3535
* @comment This test explicitly chooses the type of GC to be used by sub-processes. It may conflict with the GC type set
3636
* via the -vmoptions command line option of JTREG. vm.gc==null will help the test case to discard the explicitly passed
3737
* vm options.
@@ -46,7 +46,7 @@
4646

4747
/*
4848
* @test
49-
* @requires vm.cds.archived.java.heap
49+
* @requires vm.cds.write.archived.java.heap
5050
* @requires (vm.gc=="null")
5151
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
5252
* @build jdk.test.whitebox.WhiteBox
@@ -57,7 +57,7 @@
5757

5858
/*
5959
* @test
60-
* @requires vm.cds.archived.java.heap
60+
* @requires vm.cds.write.archived.java.heap
6161
* @requires (vm.gc=="null")
6262
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
6363
* @build jdk.test.whitebox.WhiteBox

test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/InternSharedString.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/*
2626
* @test
2727
* @summary Test shared strings together with string intern operation
28-
* @requires vm.cds.archived.java.heap
28+
* @requires vm.cds.write.archived.java.heap
2929
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
3030
* @compile InternStringTest.java
3131
* @build jdk.test.whitebox.WhiteBox

test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/InvalidFileFormat.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,7 +25,7 @@
2525
/*
2626
* @test
2727
* @summary Check most common errors in file format
28-
* @requires vm.cds.archived.java.heap
28+
* @requires vm.cds.write.archived.java.heap
2929
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3030
* @build HelloString
3131
* @run driver InvalidFileFormat

test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/LargePages.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/*
2626
* @test
2727
* @summary Basic shared string test with large pages
28-
* @requires vm.cds.archived.java.heap
28+
* @requires vm.cds.write.archived.java.heap
2929
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3030
* @build HelloString
3131
* @run driver LargePages

test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/LockSharedStrings.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/*
2626
* @test
2727
* @summary Test locking on shared strings
28-
* @requires vm.cds.archived.java.heap
28+
* @requires vm.cds.write.archived.java.heap
2929
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
3030
* @compile LockStringTest.java LockStringValueTest.java
3131
* @build jdk.test.whitebox.WhiteBox

test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/SharedStringsBasic.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/*
2626
* @test
2727
* @summary Basic test for shared strings
28-
* @requires vm.cds.archived.java.heap
28+
* @requires vm.cds.write.archived.java.heap
2929
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
3030
* @build HelloString
3131
* @run driver SharedStringsBasic

test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/SharedStringsBasicPlus.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/*
2626
* @test
2727
* @summary Basic plus test for shared strings
28-
* @requires vm.cds.archived.java.heap
28+
* @requires vm.cds.write.archived.java.heap
2929
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
3030
* @build HelloStringPlus jdk.test.whitebox.WhiteBox
3131
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox

test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/SharedStringsHumongous.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @test
2727
* @summary Use a shared string allocated in a humongous G1 region.
2828
* @comment -- the following implies that G1 is used (by command-line or by default)
29-
* @requires vm.cds.archived.java.heap
29+
* @requires vm.cds.write.archived.java.heap
3030
*
3131
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
3232
* @build HelloString

test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/SharedStringsStress.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/*
2626
* @test
2727
* @summary Write a lots of shared strings.
28-
* @requires vm.cds.archived.java.heap
28+
* @requires vm.cds.write.archived.java.heap
2929
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
3030
* @build HelloString
3131
* @run driver/timeout=500 SharedStringsStress

test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/SharedStringsWbTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/*
2626
* @test
2727
* @summary White box test for shared strings
28-
* @requires vm.cds.archived.java.heap
28+
* @requires vm.cds.write.archived.java.heap
2929
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3030
* @build jdk.test.whitebox.WhiteBox SharedStringsWb
3131
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox

test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/SysDictCrash.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @test
2727
* @summary Regression test for JDK-8098821
2828
* @bug 8098821
29-
* @requires vm.cds.archived.java.heap
29+
* @requires vm.cds.write.archived.java.heap
3030
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3131
* @run driver SysDictCrash
3232
*/

test/hotspot/jtreg/runtime/cds/serviceability/ReplaceCriticalClassesForSubgraphs.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @test
2727
* @summary Tests how CDS works when critical library classes are replaced with JVMTI ClassFileLoadHook
2828
* @library /test/lib
29-
* @requires vm.cds.archived.java.heap
29+
* @requires vm.cds.write.archived.java.heap
3030
* @build jdk.test.whitebox.WhiteBox
3131
* @run driver jdk.test.lib.helpers.ClassFileInstaller -jar whitebox.jar jdk.test.whitebox.WhiteBox
3232
* @run main/othervm/native ReplaceCriticalClassesForSubgraphs

0 commit comments

Comments
 (0)