mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
More comments
This commit is contained in:
parent
8802b94844
commit
bee032ee79
@ -582,6 +582,7 @@ public:
|
||||
previous_atomic_top = atomic_top();
|
||||
assert(previous_atomic_top != nullptr, "Must not");
|
||||
set_top(previous_atomic_top); // Sync current _atomic_top back to _top
|
||||
// previous_atomic_top MUST be stored to _top before swapping _atomic_top with nullptr
|
||||
OrderAccess::fence();
|
||||
if (AtomicAccess::cmpxchg(&_atomic_top, previous_atomic_top, (HeapWord*) nullptr) == previous_atomic_top) {
|
||||
// break when successfully exchange _atomic_top to nullptr
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user