Mercurial > hg > truffle
comparison src/share/vm/prims/jni.cpp @ 15463:a20be10ad437
made Graal work with the HotSpot compiler queue and compiler threads, enabled by -XX:-UseGraalCompilationQueue
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 02 May 2014 00:36:27 +0200 |
parents | 0aed1c2d0caa |
children | 063ec2920d21 |
comparison
equal
deleted
inserted
replaced
15462:05d3f069cff2 | 15463:a20be10ad437 |
---|---|
5172 /* thread is thread_in_vm here */ | 5172 /* thread is thread_in_vm here */ |
5173 *vm = (JavaVM *)(&main_vm); | 5173 *vm = (JavaVM *)(&main_vm); |
5174 *(JNIEnv**)penv = thread->jni_environment(); | 5174 *(JNIEnv**)penv = thread->jni_environment(); |
5175 | 5175 |
5176 #ifdef GRAAL | 5176 #ifdef GRAAL |
5177 // GraalCompiler needs to have been created in compileBroker.cpp | 5177 if (COMPILERGRAAL_PRESENT(UseGraalCompilationQueue) NOT_COMPILERGRAAL(true)) { |
5178 GraalCompiler* graal_compiler = GraalCompiler::instance(); | 5178 // GraalCompiler needs to have been created in compileBroker.cpp |
5179 if (ForceGraalInitialization && graal_compiler == NULL) { | 5179 GraalCompiler* graal_compiler = GraalCompiler::instance(); |
5180 graal_compiler = new GraalCompiler(); | 5180 if (ForceGraalInitialization && graal_compiler == NULL) { |
5181 } | 5181 graal_compiler = new GraalCompiler(); |
5182 if (graal_compiler != NULL) { | 5182 } |
5183 graal_compiler->initialize(); | 5183 if (graal_compiler != NULL) { |
5184 graal_compiler->initialize(); | |
5185 } else { | |
5186 assert(!UseCompiler, "why isn't there any compiler?"); | |
5187 } | |
5184 } else { | 5188 } else { |
5185 assert(!UseCompiler, "why isn't there any compiler?"); | 5189 // Graal is initialized on a CompilerThread |
5186 } | 5190 } |
5187 #endif | 5191 #endif |
5188 | 5192 |
5189 // Tracks the time application was running before GC | 5193 // Tracks the time application was running before GC |
5190 RuntimeService::record_application_start(); | 5194 RuntimeService::record_application_start(); |