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

Coleen Phillimore coleenp at openjdk.org
Mon Nov 24 14:03:08 UTC 2025


On Sun, 23 Nov 2025 21:23:12 GMT, Ioi Lam <iklam at openjdk.org> wrote:

>> If I use that, I lose the ability to assert that the new entry was created and not already found, which I really want.
>
> `put_when_absent` means "put it in the table when I know it's absent". It already has the assert that you want.
> 
> https://github.com/openjdk/jdk/blob/e18e95ed11c1df7eeb162c2303f027564ed6f6aa/src/hotspot/share/utilities/hashTable.hpp#L149-L152

I see.  Thanks for pointing it out. I've changed both HashTable::put() to put_when_absent then.

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

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


More information about the hotspot-runtime-dev mailing list