RFR: 8273505: runtime/cds/appcds/loaderConstraints/DynamicLoaderConstraintsTest.java#default-cl crashed with SIGSEGV in MetaspaceShared::link_shared_classes

Calvin Cheung ccheung at openjdk.java.net
Mon Sep 20 16:56:56 UTC 2021


On Fri, 17 Sep 2021 18:50:49 GMT, Ioi Lam <iklam at openjdk.org> wrote:

>> Please review this small patch for keeping the class loader, which is the holder of the `ClassLoaderData`, alive during class linking within `MetaspaceShared::link_shared_classes()`. Prior to this fix, the `ClassLoaderData::inc_keep_alive()` was used in an attempt to keep the `ClassLoaderData` alive but that was for hidden classes only.
>> 
>> Testing: tiers 1 - 4.
>
> LGTM

Thanks @iklam, @yminqi for the review.

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

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


More information about the hotspot-runtime-dev mailing list