Mercurial > hg > graal-jvmci-8
comparison src/share/vm/prims/jni.cpp @ 16399:4481cf549cfc
removed (Java based) CompilationQueue
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 03 Jul 2014 23:28:35 +0200 |
parents | 4f185700f4b7 |
children | 52b4284cb496 |
comparison
equal
deleted
inserted
replaced
16398:c5ab3fbec257 | 16399:4481cf549cfc |
---|---|
5173 /* thread is thread_in_vm here */ | 5173 /* thread is thread_in_vm here */ |
5174 *vm = (JavaVM *)(&main_vm); | 5174 *vm = (JavaVM *)(&main_vm); |
5175 *(JNIEnv**)penv = thread->jni_environment(); | 5175 *(JNIEnv**)penv = thread->jni_environment(); |
5176 | 5176 |
5177 #ifdef COMPILERGRAAL | 5177 #ifdef COMPILERGRAAL |
5178 if (UseGraalCompilationQueue) { | 5178 // Graal is initialized on a CompilerThread |
5179 // GraalCompiler may have been created in compileBroker.cpp | 5179 if (FLAG_IS_DEFAULT(BootstrapGraal) ? !TieredCompilation : BootstrapGraal) { |
5180 GraalCompiler* graal_compiler = GraalCompiler::instance(); | 5180 GraalCompiler::instance()->bootstrap(); |
5181 if (ForceGraalInitialization && graal_compiler == NULL) { | |
5182 graal_compiler = new GraalCompiler(); | |
5183 } | |
5184 if (graal_compiler != NULL) { | |
5185 graal_compiler->initialize(); | |
5186 } else { | |
5187 assert(!UseCompiler, "why isn't there any compiler?"); | |
5188 } | |
5189 } else { | |
5190 // Graal is initialized on a CompilerThread | |
5191 if (FLAG_IS_DEFAULT(BootstrapGraal) ? !TieredCompilation : BootstrapGraal) { | |
5192 GraalCompiler::instance()->bootstrap(); | |
5193 } | |
5194 } | 5181 } |
5195 #endif | 5182 #endif |
5196 | 5183 |
5197 // Tracks the time application was running before GC | 5184 // Tracks the time application was running before GC |
5198 RuntimeService::record_application_start(); | 5185 RuntimeService::record_application_start(); |