8317660: [BACKOUT] 8269393: store/load order not preserved when handling memory pool due to weakly ordered memory architecture of aarch64
Reviewed-by: ayang
This commit is contained in:
parent
7162624d70
commit
ec9ba5dae9
@ -178,13 +178,8 @@ CodeHeapPool::CodeHeapPool(CodeHeap* codeHeap, const char* name, bool support_us
|
||||
}
|
||||
|
||||
MemoryUsage CodeHeapPool::get_memory_usage() {
|
||||
size_t used;
|
||||
size_t committed;
|
||||
{
|
||||
MutexLocker mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
|
||||
used = used_in_bytes();
|
||||
committed = _codeHeap->capacity();
|
||||
}
|
||||
size_t used = used_in_bytes();
|
||||
size_t committed = _codeHeap->capacity();
|
||||
size_t maxSize = (available_for_allocation() ? max_size() : 0);
|
||||
|
||||
return MemoryUsage(initial_size(), used, committed, maxSize);
|
||||
|
Loading…
Reference in New Issue
Block a user