Skip to content

Commit

Permalink
8317660: [BACKOUT] 8269393: store/load order not preserved when handl…
Browse files Browse the repository at this point in the history
…ing memory pool due to weakly ordered memory architecture of aarch64

Reviewed-by: ayang
  • Loading branch information
TobiHartmann committed Oct 6, 2023
1 parent 7162624 commit ec9ba5d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/hotspot/share/services/memoryPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

1 comment on commit ec9ba5d

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.