RFR: 8353692: Relax memory constraint on updating ObjectMonitorTable's item count

David Holmes dholmes at openjdk.org
Wed Apr 9 02:51:34 UTC 2025


On Fri, 4 Apr 2025 01:32:48 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

> It is a simple atomic counter for tracking hash table's load factor, only needs atomic guarantee.

This seems safe. Not sure what the motivation is though? Generally we only make things relaxed when there is a performance hit to it not being relaxed. Otherwise its too hard to reason about why/when something can be relaxed and when not.

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

Marked as reviewed by dholmes (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/24432#pullrequestreview-2751906473


More information about the hotspot-runtime-dev mailing list