mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8246676: monitor list lock operations need more fencing
Reviewed-by: dholmes, eosterlund, rehn, pchilanomate
This commit is contained in:
parent
62d77dc3fc
commit
f636b84f48
3 changed files with 72 additions and 14 deletions
|
@ -278,9 +278,14 @@ class ObjectMonitor {
|
|||
// _owner field. Returns the prior value of the _owner field.
|
||||
void* try_set_owner_from(void* old_value, void* new_value);
|
||||
|
||||
// Simply get _next_om field.
|
||||
ObjectMonitor* next_om() const;
|
||||
// Get _next_om field with acquire semantics.
|
||||
ObjectMonitor* next_om_acquire() const;
|
||||
// Simply set _next_om field to new_value.
|
||||
void set_next_om(ObjectMonitor* new_value);
|
||||
// Set _next_om field to new_value with release semantics.
|
||||
void release_set_next_om(ObjectMonitor* new_value);
|
||||
// Try to set _next_om field to new_value if the current value matches
|
||||
// old_value, using Atomic::cmpxchg(). Otherwise, does not change the
|
||||
// _next_om field. Returns the prior value of the _next_om field.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue