Integrated: 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:49 UTC 2024
On Tue, 12 Nov 2024 22:19:25 GMT, Calvin Cheung <ccheung 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.
This pull request has now been integrated.
Changeset: dde62307
Author: Calvin Cheung <ccheung at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/dde6230751672bde5a1bcb52686641f3a8b40cfb
Stats: 57 lines in 2 files changed: 54 ins; 1 del; 2 mod
8343416: CDS dump fails when unregistered class can also be loaded from system modules
Reviewed-by: iklam, matsaave
-------------
PR: https://git.openjdk.org/jdk/pull/22049
More information about the hotspot-runtime-dev
mailing list