On Thu, 29 Jan 2026 17:53:26 GMT, Patricio Chilano Mateo 
<[email protected]> wrote:

>> What would force it to be non-null? (Related: under what conditions will 
>> `th` be null and what does that imply about the value of `_thread_h()`?)
>
> A null `java_thread` is only possible for the unmounted vthread case. The oop 
> should always be a valid `java.lang.Thread` though. Maybe `thread_oop` should 
> be initialized to `nullptr` and the assert at line 1914 be just 
> `assert(thread_oop != nullptr, "Missing Thread oop");`?

Okay so `!is_virtual => java_thread != nullptr`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29461#discussion_r2744574434

Reply via email to