mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
7036236: VM crashes assert((!inside_attrs()) || is_error_reported()) failed ..
Eliminate the race condition. Reviewed-by: kvn
This commit is contained in:
parent
aac4b1553e
commit
3344bbfb29
3 changed files with 19 additions and 5 deletions
|
@ -971,8 +971,6 @@ size_t CodeCache::largest_free_block() {
|
|||
if (CodeCache_lock->owned_by_self()) {
|
||||
return _heap->largest_free_block();
|
||||
} else {
|
||||
// Avoid lock ordering problems with ttyLock.
|
||||
ttyUnlocker ttyul;
|
||||
MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
|
||||
return _heap->largest_free_block();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue