-
Enhancement
-
Resolution: Fixed
-
P4
-
17
-
b07
When dumping a dynamic CDS archive, we skip unlinked classes from custom loaders. The reason is:
We cannot link these classes during dynamic dump time -- linking may require more classes to be loaded, which would cause user-supplied versions of ClassLoader::loadClass() to be called.
Since dynamic dump happens at VM exit, executing such user-supplied code at this stage may cause unpredictable behavior.
==========
SinceJDK-8261090, we can store old classes in the static archive. These classes are unlinked, and will be linked/verified at runtime. We should extend this mechanism to support unlinked classes in the dynamic archive.
We cannot link these classes during dynamic dump time -- linking may require more classes to be loaded, which would cause user-supplied versions of ClassLoader::loadClass() to be called.
Since dynamic dump happens at VM exit, executing such user-supplied code at this stage may cause unpredictable behavior.
==========
Since
- relates to
-
JDK-8261090 Store old classfiles in static CDS archive
- Resolved