mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8200230: [Graal] Compilations should not be enqueued before Graal is initialized
Split compiler initialization into two phases to avoid compilations being enqueued before Graal is initialized. Reviewed-by: kvn, dnsimon
This commit is contained in:
parent
32668d954e
commit
c530e2724d
3 changed files with 33 additions and 21 deletions
|
@ -524,7 +524,7 @@ CompilerCounters::CompilerCounters() {
|
|||
// CompileBroker::compilation_init
|
||||
//
|
||||
// Initialize the Compilation object
|
||||
void CompileBroker::compilation_init(TRAPS) {
|
||||
void CompileBroker::compilation_init_phase1(TRAPS) {
|
||||
_last_method_compiled[0] = '\0';
|
||||
|
||||
// No need to initialize compilation system if we do not use it.
|
||||
|
@ -671,10 +671,13 @@ void CompileBroker::compilation_init(TRAPS) {
|
|||
(jlong)CompileBroker::no_compile,
|
||||
CHECK);
|
||||
}
|
||||
|
||||
_initialized = true;
|
||||
}
|
||||
|
||||
// Completes compiler initialization. Compilation requests submitted
|
||||
// prior to this will be silently ignored.
|
||||
void CompileBroker::compilation_init_phase2() {
|
||||
_initialized = true;
|
||||
}
|
||||
|
||||
JavaThread* CompileBroker::make_thread(const char* name, CompileQueue* queue, CompilerCounters* counters,
|
||||
AbstractCompiler* comp, bool compiler_thread, TRAPS) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue