8198756: Lazy allocation of compiler threads

Reviewed-by: kvn
This commit is contained in:
Martin Doerr 2018-04-18 11:19:32 +02:00
parent 4a2ed13802
commit 5e1a7651cd
6 changed files with 294 additions and 47 deletions

View file

@ -3359,6 +3359,11 @@ CompilerThread::CompilerThread(CompileQueue* queue,
#endif
}
CompilerThread::~CompilerThread() {
// Delete objects which were allocated on heap.
delete _counters;
}
bool CompilerThread::can_call_java() const {
return _compiler != NULL && _compiler->is_jvmci();
}