mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8209670: CompilerThread releasing code buffer in destructor is unsafe
Don't free temporary code buffers in compiler thread destructor to avoid interference with safepoint code. Reviewed-by: kvn, dholmes, zgu
This commit is contained in:
parent
ea4f2f60d5
commit
aef7c93375
2 changed files with 11 additions and 5 deletions
|
@ -3298,11 +3298,6 @@ CompilerThread::CompilerThread(CompileQueue* queue,
|
|||
}
|
||||
|
||||
CompilerThread::~CompilerThread() {
|
||||
// Free buffer blob, if allocated
|
||||
if (get_buffer_blob() != NULL) {
|
||||
MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
|
||||
CodeCache::free(get_buffer_blob());
|
||||
}
|
||||
// Delete objects which were allocated on heap.
|
||||
delete _counters;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue