Benefits of including a default CDS archive in JDK distribution:
- Startup performance improvement (default behavior). With the latest JDK 11 EA build 11-ea+14, using CDS archive improves JVM startup time by 32.59% on linux-x64 with default settings. On other platforms, similar or higher performance gains have been observed with CDS enabled.
- Reduce overhead for users.
Size measurement shows the CDS archive generated from the default classlist is 13% of the lib/modules on linux-x64. Including a default CDS archive will have a small increase for JDK binary footprint.
As the CDS archive contains generated code (CPU specific) although minimum, the packaged archive should be generated on a platform with the same OS and CPU for the target machine.
The impact on testing is large as all test executions will enable CDS by default once a JDK binary is packaged with a default archive. All tiers need to be tested before the proposed change can be integrated.
- is blocked by
-
JDK-8204308 SA: serviceability/sa/TestInstanceKlassSize*.java fails when running in CDS mode
-
- Resolved
-
-
JDK-8208061 runtime/LoadClass/TestResize.java fails with "Load factor too high" when running in CDS mode
-
- Resolved
-
-
JDK-8209736 runtime/RedefineTests/ModifyAnonymous.java fails with NullPointerException when running in CDS mode
-
- Resolved
-
-
JDK-8209739 [TESTBUG] javax/imageio/plugins/png/ItxtUtf8Test.java fails with OutOfMemoryError when running in CDS mode
-
- Resolved
-
-
JDK-8209971 TestOptionsWithRanges.java crashes in CDS mode with G1UpdateBufferSize=1
-
- Resolved
-
-
JDK-8208658 Make CDS archived heap regions usable even if compressed oop encoding has changed
-
- Resolved
-
- relates to
-
JDK-8210591 Verify default CDS archive is included in JDK RE bundle
-
- Resolved
-
-
JDK-8210592 Convert CDS-mode test sets in tier5 and tier6 to non-CDS-mode tests
-
- Resolved
-
-
JDK-8209766 compiler/jvmci/compilerToVM/DebugOutputTest.java times out
-
- Open
-
-
JDK-8211837 Creation of the default CDS Archive should depend on ENABLE_CDS
-
- Resolved
-
-
JDK-8208061 runtime/LoadClass/TestResize.java fails with "Load factor too high" when running in CDS mode
-
- Resolved
-
-
JDK-8209736 runtime/RedefineTests/ModifyAnonymous.java fails with NullPointerException when running in CDS mode
-
- Resolved
-
-
JDK-8209739 [TESTBUG] javax/imageio/plugins/png/ItxtUtf8Test.java fails with OutOfMemoryError when running in CDS mode
-
- Resolved
-
-
JDK-8209743 [TESTBUG] java/lang/management/MemoryMXBean/LowMemoryTest2.sh fails with OutOfMemoryError running in CDS mode
-
- Resolved
-
-
JDK-8209971 TestOptionsWithRanges.java crashes in CDS mode with G1UpdateBufferSize=1
-
- Resolved
-
-
JDK-8210193 [TESTBUG]gc/g1/mixedgc/TestOldGenCollectionUsage.java fails intermittently with OutOfMemoryError in CDS mode
-
- Resolved
-
-
JDK-8210237 [TESTBUG]gc/stress/TestStressIHOPMultiThread.java fails with 'Unexpected exit from test [exit code: 1]' in CDS mode
-
- Resolved
-
-
JDK-8210926 vmTestbase/nsk/jvmti/scenarios/allocation/AP11/ap11t001/TestDescription.java failed with JVMTI_ERROR_INVALID_CLASS in CDS mode
-
- Resolved
-
-
JDK-8202360 [TESTBUG] runtime/LoadClass/TestResize.java needs to print output when it fails
-
- Resolved
-
-
JDK-8021335 Missing synchronization when reading counters for live threads and peak thread count
-
- Resolved
-
-
JDK-8203387 Crash in compiler thread with NULL stack frame
-
- Closed
-
-
JDK-8209741 com/sun/jdi/ArrayLengthDumpTest.java fails with ArrayIndexOutOfBoundsException when running in CDS mode
-
- Closed
-
-
JDK-8209744 com/sun/jdi/ClassesByName2Test.java fails with VMDisconnectedException in CDS mode
-
- Closed
-
-
JDK-8209745 [TESTBUG] vmTestbase/nsk/aod/VirtualMachine/VirtualMachine05/VirtualMachine05.java times out in CDS mode
-
- Closed
-
-
JDK-8209763 vmTestbase/vm/mlvm/meth/stress/jni/nativeAndMH/Test.java time out
-
- Closed
-
-
JDK-8210928 compiler/aot/cli/MultipleAOTLibraryTest.java crashes in CodeCache::get_code_heap_containing running in CDS mode
-
- Closed
-
-
JDK-8211838 Minimal VM build is broken after JDK-8202951 (Implementation of JEP 341: Default CDS Archives)
-
- Closed
-
-
JDK-8208351 build failed on some profiles if a CDS archive is being generated during the build
-
- Closed
-
-
JDK-8204110 serviceability/sa/ClhsdbSymbol.java and ClhsdbInspect.java failed when running in CDS mode
-
- Resolved
-
-
JDK-8204308 SA: serviceability/sa/TestInstanceKlassSize*.java fails when running in CDS mode
-
- Resolved
-
-
JDK-8205699 assert(_owner_offset != 0) failed in javaClasses.cpp
-
- Resolved
-
-
JDK-8205702 assert(UseCompressedClassPointers) failed in universe.hpp
-
- Resolved
-
-
JDK-8203960 [TESTBUG] runtime/logging/DefaultMethodsTest.java failed when running in CDS mode
-
- Resolved
-
-
JDK-8232593 [TESTBUG] runtime/cds/CheckDefaultArchiveFile.java fails when cds is disabled
-
- Resolved
-
-
JDK-8214118 HeapRegions marked as archive even if CDS mapping fails
-
- Closed
-
-
JDK-8204247 JEP 341: Default CDS Archives
-
- Closed
-