Skip to content

Commit 922e86f

Browse files
committed
8273522: Rename test property vm.cds.archived.java.heap to vm.cds.write.archived.java.heap
Reviewed-by: minqi, ccheung, mseledtsov
1 parent f42b927 commit 922e86f

40 files changed

+50
-53
lines changed

src/hotspot/share/cds/heapShared.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ class HeapShared: AllStatic {
155155

156156
// Can this VM write heap regions into the CDS archive? Currently only G1+compressed{oops,cp}
157157
static bool can_write() {
158-
assert(DumpSharedSpaces, "only when writing static archive");
159158
CDS_JAVA_HEAP_ONLY(return (UseG1GC && UseCompressedOops && UseCompressedClassPointers);)
160159
NOT_CDS_JAVA_HEAP(return false;)
161160
}

src/hotspot/share/prims/whitebox.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -2001,8 +2001,8 @@ WB_ENTRY(jboolean, WB_IsJVMCISupportedByGC(JNIEnv* env))
20012001
#endif
20022002
WB_END
20032003

2004-
WB_ENTRY(jboolean, WB_IsJavaHeapArchiveSupported(JNIEnv* env))
2005-
return HeapShared::can_use();
2004+
WB_ENTRY(jboolean, WB_CanWriteJavaHeapArchive(JNIEnv* env))
2005+
return HeapShared::can_write();
20062006
WB_END
20072007

20082008

@@ -2640,7 +2640,7 @@ static JNINativeMethod methods[] = {
26402640
{CC"isJFRIncluded", CC"()Z", (void*)&WB_IsJFRIncluded },
26412641
{CC"isC2OrJVMCIIncluded", CC"()Z", (void*)&WB_isC2OrJVMCIIncluded },
26422642
{CC"isJVMCISupportedByGC", CC"()Z", (void*)&WB_IsJVMCISupportedByGC},
2643-
{CC"isJavaHeapArchiveSupported", CC"()Z", (void*)&WB_IsJavaHeapArchiveSupported },
2643+
{CC"canWriteJavaHeapArchive", CC"()Z", (void*)&WB_CanWriteJavaHeapArchive },
26442644
{CC"cdsMemoryMappingFailed", CC"()Z", (void*)&WB_CDSMemoryMappingFailed },
26452645

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

test/hotspot/jtreg/TEST.ROOT

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ requires.properties= \
6767
vm.rtm.compiler \
6868
vm.cds \
6969
vm.cds.custom.loaders \
70-
vm.cds.archived.java.heap \
70+
vm.cds.write.archived.java.heap \
7171
vm.jvmti \
7272
vm.graal.enabled \
7373
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
* @requires vm.flagless
3030
* @library /test/lib
3131
* @build SharedStringsWb sun.hotspot.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 sun.hotspot.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 sun.hotspot.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
* @requires vm.flagless
2929
* @library /test/jdk/lib/testlibrary /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3030
* @build sun.hotspot.WhiteBox

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 sun.hotspot.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 sun.hotspot.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 sun.hotspot.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 sun.hotspot.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 sun.hotspot.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 sun.hotspot.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 sun.hotspot.WhiteBox
3333
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.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
* @requires vm.gc == null
3030
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
3131
* @build HelloStringGC sun.hotspot.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
* @requires vm.gc == null
3030
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3131
* @build HelloString
@@ -36,7 +36,7 @@
3636
* @test
3737
* @summary Test relevant combinations of command line flags with shared strings
3838
* @comment A special test excluding the case that requires JFR
39-
* @requires vm.cds.archived.java.heap & !vm.hasJFR
39+
* @requires vm.cds.write.archived.java.heap & !vm.hasJFR
4040
* @requires vm.gc == null
4141
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
4242
* @build HelloString

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 sun.hotspot.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 sun.hotspot.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
* @requires vm.gc == null
3030
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
3131
* @compile InternStringTest.java

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
* @requires vm.gc == null
3030
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3131
* @build HelloString

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
* @requires vm.gc == null
3030
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
3131
* @compile LockStringTest.java LockStringValueTest.java

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
* @requires vm.gc == null
3030
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
3131
* @build HelloStringPlus sun.hotspot.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
* @requires vm.gc == null
3030
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3131
* @build sun.hotspot.WhiteBox SharedStringsWb

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
* @requires vm.gc == null
3131
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3232
* @run driver SysDictCrash

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 sun.hotspot.WhiteBox
3131
* @run driver jdk.test.lib.helpers.ClassFileInstaller -jar whitebox.jar sun.hotspot.WhiteBox
3232
* @run main/othervm/native ReplaceCriticalClassesForSubgraphs

0 commit comments

Comments
 (0)