RFR: 8261941: Use ClassLoader for unregistered classes during -Xshare:dump [v4]

Yumin Qi minqi at openjdk.java.net
Wed Sep 15 22:08:57 UTC 2021


On Wed, 15 Sep 2021 18:04:50 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

>> Before this change, unregistered classes are loaded by the boot class loader during CDS dump time.
>> This RFE creates an URLClassLoader based on the source specified in the classlist and uses the URLClassLoader to load the unregistered class during CDS dump time. The URLClassLoader instances will be cached in a hash table with the source as the key so that classes associated with the same source will be loaded by the same instance of class loader.
>> 
>> Passed tiers 1 - 4 testing.
>
> Calvin Cheung has updated the pull request incrementally with one additional commit since the last revision:
> 
>   @iklam comment

LGTM.

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

Marked as reviewed by minqi (Reviewer).

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


More information about the hotspot-runtime-dev mailing list