mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
Load _volatile_top once in free_bytes_for_atomic_alloc
This commit is contained in:
parent
48e04e885a
commit
d8f7e51f7e
@ -483,7 +483,7 @@ public:
|
||||
size_t free_words() const { return pointer_delta(end(), top()); }
|
||||
size_t free_bytes_for_atomic_alloc() const {
|
||||
HeapWord* v_top = volatile_top();
|
||||
return v_top == nullptr ? 0 : byte_size(volatile_top(), end());
|
||||
return v_top == nullptr ? 0 : byte_size(v_top, end());
|
||||
}
|
||||
|
||||
// Does this region contain this address?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user