RFR: 8343416: CDS dump fails when unregistered class can also be loaded from system modules
Calvin Cheung
ccheung at openjdk.org
Wed Nov 13 19:38:47 UTC 2024
On Tue, 12 Nov 2024 23:01:30 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> For classes to be loaded by a custom class loader during dump time, we currently use the `URLClassLoader.loadClass` to load the class which will be delegated to the boot class loader if the class is from a system module jar (e.g. jrt-fs.jar). To avoid the delegation and load the class by a custom class loader, this fix uses the `URLClassLoader.findClass` instead.
>>
>> Passed tiers 1 - 3 testing.
>
> LGTM
Thanks @iklam and @matias9927.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22049#issuecomment-2474566321
More information about the hotspot-runtime-dev
mailing list