On Fri, 27 Jun 2025 20:22:12 GMT, Alex Menkov <amen...@openjdk.org> wrote:
> I believe null here is not result of `_thread_h()`, but is returned by > `java_lang_VirtualThread::continuation(...)` because `_thread_h` is > lava.lang.Thread object and not java.lang.VirtualThread. That could only happen if we are dealing with a terminated regular thread - which we should never do here if the TLH is used correctly and we only ever pass live threads to `do_thread`, or else the null which means "unmounted virtual thread". ------------- PR Comment: https://git.openjdk.org/jdk/pull/25958#issuecomment-3017944031