RFR: 8316711: SEGV in LoaderConstraintTable::find_loader_constraint after JDK-8310874
Coleen Phillimore
coleenp at openjdk.org
Fri Sep 22 22:02:20 UTC 2023
On Fri, 22 Sep 2023 16:51:42 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)
Zhengyu, thanks for noticing the missing ResourceMark. I tested with this logging on and didn't get an error, but we still need one here. I'll fix that as a separate CR so that I can integrate this to stop testing failures for now.
Thanks Dan and Ioi for reviewing.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15891#issuecomment-1732072558
More information about the hotspot-runtime-dev
mailing list