RFR: 8192647: GClocker induced GCs can starve threads requiring memory leading to OOME [v2]

David Holmes dholmes at openjdk.org
Tue Feb 18 01:28:20 UTC 2025


On Sat, 15 Feb 2025 11:49:53 GMT, Albert Mingkun Yang <ayang at 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


More information about the hotspot-dev mailing list