mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8205499: C1 temporary code buffers are not removed with -XX:+UseDynamicNumberOfCompilerThreads
Deallocate C1 code buffers in the compiler thread destructor. Reviewed-by: neliasso, kvn, mdoerr
This commit is contained in:
parent
487db1a3bb
commit
5e002c7aa7
2 changed files with 5 additions and 6 deletions
|
@ -3298,6 +3298,11 @@ 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