-
Enhancement
-
Resolution: Fixed
-
P4
-
20
-
b15
Currently, the CDS archive heap supports a fixed set of built-in classes, specified by hard-coded lists in heapShared.cpp:
https://github.com/openjdk/jdk/blob/372fc58e897d25713db0dfe289ed25c40d9a3985/src/hotspot/share/cds/heapShared.cpp#L104-L127
As we plan to improve the archive heap, it becomes critical to be able to write specific test cases for different scenarios.
For example, supporting LambdaForms in the CDS archive heap would require archiving enums of the type sun.invoke.util.Wrapper, which doesn't work yet (seeJDK-8293187). This RFE makes it possible to develop support for sun.invoke.util.Wrapper separately, without implementing the full support of LambdaForms in a single colossal step.
The proposal is to add a new VM option. For safety, this option is not available in product builds:
develop(ccstr, ArchiveHeapTestClass, NULL, \
"For JVM internal testing only. Not available in " \
"product builds. If specified, the static field named " \
"\"archivedObjects\" in this class is stored into the CDS " \
"archive heap")
https://github.com/openjdk/jdk/blob/372fc58e897d25713db0dfe289ed25c40d9a3985/src/hotspot/share/cds/heapShared.cpp#L104-L127
As we plan to improve the archive heap, it becomes critical to be able to write specific test cases for different scenarios.
For example, supporting LambdaForms in the CDS archive heap would require archiving enums of the type sun.invoke.util.Wrapper, which doesn't work yet (see
The proposal is to add a new VM option. For safety, this option is not available in product builds:
develop(ccstr, ArchiveHeapTestClass, NULL, \
"For JVM internal testing only. Not available in " \
"product builds. If specified, the static field named " \
"\"archivedObjects\" in this class is stored into the CDS " \
"archive heap")
- duplicates
-
JDK-8214781 Crash in HeapShared::init_subgraph_entry_fields when referenced class doesn't exist in image
-
- Closed
-
- relates to
-
JDK-8302117 IgnoreUnrecognizedVMOptions flag causes failure in ArchiveHeapTestClass
-
- Resolved
-
-
JDK-8330647 Two CDS tests fail with -UseCompressedOops and UseSerialGC/UseParallelGC
-
- Resolved
-
-
JDK-8214781 Crash in HeapShared::init_subgraph_entry_fields when referenced class doesn't exist in image
-
- Closed
-
(1 links to)