On Wed, 19 Aug 2026 01:01:27 GMT, David Holmes <[email protected]> wrote:

>> This PR removes the last traces of the obsolete thread transition states 
>> such as _thread_new_trans, _thread_blocked_trans, etc.  These states have 
>> not been needed ever since the JVM switched safepoints from doing forced 
>> suspend to cooperative self-suspend.  Most were no longer used thanks to 
>> previous work by @pchilano , but there remained uses of 
>> _thread_in_native_trans that are now safely converted into _thread_in_vm.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp line 2056:
> 
>> 2054:   //     VM thread changes sync state to synchronizing and suspends 
>> threads for GC.
>> 2055:   //     Thread A is resumed to finish this native method, but doesn't 
>> block here since it
>> 2056:   //     didn't see any synchronization is progress, and escapes.
> 
> I think the comment is still relevant even if we now switch to the in-vm 
> state to achieve it rather than the native-trans state.

Or maybe the comment is already stale?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/32415#discussion_r3809404492

Reply via email to