RFR: 8333791: Fix memory barriers for @Stable fields [v3]
    Chen Liang 
    liach at openjdk.org
       
    Fri Aug 16 05:23:57 UTC 2024
    
    
  
On Fri, 16 Aug 2024 04:47:42 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:
>> Isn't membar additions already checked with `is_object_initializer()` or `method()->name() == ciSymbols::object_initializer_name()`?
>
> Yes we only emit membars at the end of constructors but we do not check if the stable fields being written are of the same objects as the ones being constructed there.
That should be still fine, as this shouldn't affect performance-sensitive fast paths.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19635#discussion_r1719327139
    
    
More information about the hotspot-dev
mailing list