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

David Holmes dholmes at openjdk.org
Fri Feb 7 06:46:10 UTC 2025


On Thu, 6 Feb 2025 21:42:50 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> in_critical() is used only by the owning thread,

I see code using `thr->in_critical()` which is not obviously being executed by the current thread on itself. But in any case adding the atomic load to `in_critical()` is basically a no-op (loads are atomic) so no need to add a new API just to do that.

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

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


More information about the serviceability-dev mailing list