RFR: 8316711: SEGV in LoaderConstraintTable::find_loader_constraint after JDK-8310874

Zhengyu Gu zgu at openjdk.org
Fri Sep 22 19:00:11 UTC 2023


On Fri, 22 Sep 2023 17:40:36 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> The new loader constraint code was putting the InstanceKlass on the deallocate list, then safepointing, then trying to find it in the LoaderConstraintTable.  In the crash, the InstanceKlass was deallocated before searching for it in the table.  The fix is to use the proper order.
>> Tested multiple runs with closed failing tests, and tier1-4 (1 test left)
>
> Thanks Dan. Sorry for the breakage.

@coleenp Not related to this change. I believe you need `ResourceMark` for `name->as_C_string()' here: https://github.com/openjdk/jdk/blob/master/src/hotspot/share/classfile/loaderConstraints.cpp#L456

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

PR Comment: https://git.openjdk.org/jdk/pull/15891#issuecomment-1731905668


More information about the hotspot-runtime-dev mailing list