<div dir="ltr"><div>Andrew, Erik, thanks for responding. As the change looks legal, I'll create an RFE then.</div><div><br></div><div>Erik, could you please point to the anchor change since which there is no race concern: is it Faster safepoints, Async handshakes or something else?</div><div><br></div><div>-Dmitry</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 25, 2024 at 10:22 PM Erik Osterlund <<a href="mailto:erik.osterlund@oracle.com">erik.osterlund@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
A key ingredient of the race I pointed out is no longer around. The VMThread used to disarm the Java threads. It’s observing that disarmed value that required ldar.<br>
<br>
Today, Java threads always disarm themselves. That removes the need for ldar entirely, with or without sys_membarrier.<br>
<br>
Thanks for directing my attention to this.<br>
<br>
/Erik<br>
<br>
> On 25 Jul 2024, at 17:45, Andrew Haley <<a href="mailto:aph-open@littlepinkcloud.com" target="_blank">aph-open@littlepinkcloud.com</a>> wrote:<br>
> <br>
> On 7/25/24 14:43, Dmitry Chuyko wrote:<br>
>> I wonder if it would be correct to emit the safepoint_poll with<br>
>> acquire=false in case UseSystemMemoryBarrier is true at least on some known<br>
>> CPUs. Regression tests don't reveal problems, but they don't produce eager<br>
>> safepoint/jni races.<br>
> <br>
> Mmm, good point. That sounds reasonable, but I'll defer to others on Cc:<br>
> <br>
> --<br>
> Andrew Haley (he/him)<br>
> Java Platform Lead Engineer<br>
> Red Hat UK Ltd. <<a href="https://urldefense.com/v3/__https://www.redhat.com__;!!ACWV5N9M2RV99hQ!OzZDdGStquMIZXrytYV3LNK6l1u5Lg5U2nomVggyZwXZMm3JIDrJFxFYv8xDCcttK-yEKVwFTqS-P_J-ntB1LgMoAtHd$" rel="noreferrer" target="_blank">https://urldefense.com/v3/__https://www.redhat.com__;!!ACWV5N9M2RV99hQ!OzZDdGStquMIZXrytYV3LNK6l1u5Lg5U2nomVggyZwXZMm3JIDrJFxFYv8xDCcttK-yEKVwFTqS-P_J-ntB1LgMoAtHd$</a> ><br>
> <a href="https://urldefense.com/v3/__https://keybase.io/andrewhaley__;!!ACWV5N9M2RV99hQ!OzZDdGStquMIZXrytYV3LNK6l1u5Lg5U2nomVggyZwXZMm3JIDrJFxFYv8xDCcttK-yEKVwFTqS-P_J-ntB1LriHa8IO$" rel="noreferrer" target="_blank">https://urldefense.com/v3/__https://keybase.io/andrewhaley__;!!ACWV5N9M2RV99hQ!OzZDdGStquMIZXrytYV3LNK6l1u5Lg5U2nomVggyZwXZMm3JIDrJFxFYv8xDCcttK-yEKVwFTqS-P_J-ntB1LriHa8IO$</a> EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671<br>
> <br>
</blockquote></div></div>