RFR: 8340796: Use a consistent order when loading cxq and EntryList
Erik Österlund
eosterlund at openjdk.org
Mon Oct 21 10:03:09 UTC 2024
On Fri, 18 Oct 2024 14:44:52 GMT, Fredrik Bredberg <fbredberg at openjdk.org> wrote:
> Made sure we use a consistent order when reading ObjectMonitor EntryList and cxq while exiting the monitor.
> That consistent order is EntryList before cxq. Added a comment in the shared code to explaining why it's okay that waiters slip undetected between reading EntryList and cxq.
>
> Tested ok tier1-3.
Looks good to me.
-------------
Marked as reviewed by eosterlund (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/21584#pullrequestreview-2381536482
More information about the hotspot-dev
mailing list