RFR: 8316711: SEGV in LoaderConstraintTable::find_loader_constraint after JDK-8310874
Coleen Phillimore
coleenp at openjdk.org
Fri Sep 22 16:58:43 UTC 2023
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)
-------------
Commit messages:
- 8316711: SEGV in LoaderConstraintTable::find_loader_constraint after JDK-8310874
Changes: https://git.openjdk.org/jdk/pull/15891/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15891&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8316711
Stats: 7 lines in 2 files changed: 3 ins; 4 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/15891.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/15891/head:pull/15891
PR: https://git.openjdk.org/jdk/pull/15891
More information about the hotspot-runtime-dev
mailing list