Integrated: 8340796: Use a consistent order when loading cxq and EntryList

Fredrik Bredberg fbredberg at openjdk.org
Mon Oct 28 09:08:28 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.

This pull request has now been integrated.

Changeset: eb3669a5
Author:    Fredrik Bredberg <fbredberg at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/eb3669a5869d3066341e63dfb8792bd967663656
Stats:     22 lines in 6 files changed: 8 ins; 0 del; 14 mod

8340796: Use a consistent order when loading cxq and EntryList

Reviewed-by: dholmes, coleenp, eosterlund

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

PR: https://git.openjdk.org/jdk/pull/21584


More information about the hotspot-dev mailing list