RFR: 8367475: Incorrect lock usage in LambdaFormInvokers::regenerate_holder_classes [v2]

David Holmes dholmes at openjdk.org
Fri Sep 12 05:58:09 UTC 2025


On Fri, 12 Sep 2025 04:16:13 GMT, Ioi Lam <iklam at openjdk.org> wrote:

>> It gives the impression that null is possible somehow. But it will assert if that happens - which I doubt is possible.
>
> Oh I didn't realize that `Thread::current()` never returns null. I've updated `current_thread_is_vm_or_dumper()` and `current_thread_is_dumper()`.

I assumed the code wanted to assert on null but handled it in release mode, just in case.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27231#discussion_r2343058040


More information about the hotspot-runtime-dev mailing list