On Sat, 15 Feb 2025 11:49:53 GMT, Albert Mingkun Yang <ay...@openjdk.org> wrote:

> I have removed the new API, and switched to use the original in_critical().

You still need it to be an atomic load together with whatever compiler barriers 
that implies, otherwise it can be hoisted out of the spin-loop:

while (cur->in_critical()) {
  spin_yield.wait();
}

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

PR Comment: https://git.openjdk.org/jdk/pull/23367#issuecomment-2664351707

Reply via email to