RFR: 8365526: Crash with null Symbol passed to SystemDictionary::resolve_or_null
Coleen Phillimore
coleenp at openjdk.org
Thu Nov 20 17:14:42 UTC 2025
The vm was crashing because the constant pool couldn't find the resolution error in the ResolutionErrorEntry (error field). Multiple threads were adding duplicate entries for nest_host_errors in the case where resolution failed and where there was already a nest host error in the ResolultionErrorEntry. Add a null check and an assert that we only add a resolution error for nest host errors in the case of success since in the case of failure there will always already be a ResolutionErrorEntry for the failing constant pool and cp index.
Tested with submitted reproducer and tier1-4.
-------------
Commit messages:
- 8365526: Crash with null Symbol passed to SystemDictionary::resolve_or_null
Changes: https://git.openjdk.org/jdk/pull/28438/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28438&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8365526
Stats: 4 lines in 1 file changed: 3 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/28438.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28438/head:pull/28438
PR: https://git.openjdk.org/jdk/pull/28438
More information about the hotspot-runtime-dev
mailing list