RFR: 8365526: Crash with null Symbol passed to SystemDictionary::resolve_or_null [v2]

Coleen Phillimore coleenp at openjdk.org
Sat Nov 22 22:16:50 UTC 2025


On Sat, 22 Nov 2025 22:03:20 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> I made a ticket for this: [8372373](https://bugs.openjdk.org/browse/JDK-8372373)
>
> As Johan said in the first case, the message and cause are resource allocated so not owned by the ResolvedErrorEntry, so that's not a leak.  I have to read the code around the nest host error again to comment.  I would not like this strange template around ownership.
> 
> Also, set_nest_host_error() does not need to free the existing error because it's only set if it's null.  So nothing to free.

In my change, the case that ignores setting the nest_host_error should free it.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28438#discussion_r2553379533


More information about the hotspot-runtime-dev mailing list