RFR: 8252689: Classes are loaded from jrt:/java.base even when CDS is used

Daniel D.Daugherty dcubed at openjdk.java.net
Fri Sep 11 20:21:40 UTC 2020


On Fri, 11 Sep 2020 20:14:20 GMT, Ioi Lam <iklam at openjdk.org> wrote:

>> Java.util.jar.Manifest related classes not archived since they are neither in classlist or loaded in dump process.
>> Manually create a dummy Manifest object will cause those classes loaded in dump and archived.
>
> src/hotspot/share/memory/metaspaceShared.cpp line 1359:
> 
>> 1357:     HeapShared::init_for_dumping(THREAD);
>> 1358:
>> 1359:     // create a dummy manifest to cause more classes loaded
> 
> How about: `// exercise the manifest processing code to ensue classes used by CDS are always archived`?

s/ensue classes/ensure classes/

-------------

PR: https://git.openjdk.java.net/jdk/pull/134


More information about the hotspot-runtime-dev mailing list