RFR: 8364819: Post-integration cleanups for JDK-8359820 [v3]

Anton Artemov duke at openjdk.org
Wed Aug 6 15:20:44 UTC 2025


On Wed, 6 Aug 2025 15:01:23 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> If the variable is declared volatile, the same should be done with the getter, otherwise GCC complains about conversion:
>> 
>> error: invalid conversion from 'volatile Thread*' to 'Thread*'
>
> Oh, that's because you probably want the:
> 
> 
> static Thread* volatile _handshake_timed_out_thread;
> 
> 
> ...not:
> 
> 
> static volatile Thread* _handshake_timed_out_thread;
> 
> 
> I.e. the volatility is about the _field_, not about the _type_.

Right, noted!

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26656#discussion_r2257530740


More information about the hotspot-dev mailing list