RFR: 8350667: Remove startThread_lock() and _startThread_lock on AIX

David Holmes dholmes at openjdk.org
Wed Feb 26 04:43:52 UTC 2025


On Wed, 26 Feb 2025 04:34:54 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> The startThread_lock() and _startThread_lock coding is not used on AIX so it can be removed.
>
> src/hotspot/os/aix/os_aix.cpp line 800:
> 
>> 798: 
>> 799:   // child thread synchronization is not done here on AIX, a thread is started in suspended state
>> 800: 
> 
> It is interesting that on Windows, where we also start threads suspended, we also do:
> 
> // Thread state now is INITIALIZED, not SUSPENDED
>   osthread->set_state(INITIALIZED);
> 
> then we have:
> 
>   // The thread is returned suspended (in state INITIALIZED), and is started higher up in the call chain
>   return true;

But I see now that states ALLOCATED and INITIALIZED are really only needed for the parent/child handshake.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23779#discussion_r1970896138


More information about the hotspot-runtime-dev mailing list