Mercurial > hg > truffle
comparison src/share/vm/graal/graalVMToCompiler.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 | 6876a4599b7e |
children | 063ec2920d21 |
comparison
equal
deleted
inserted
replaced
15462:05d3f069cff2 | 15463:a20be10ad437 |
---|---|
109 args.push_int(ciTime); | 109 args.push_int(ciTime); |
110 JavaCalls::call_static(&result, optionsKlass, vmSymbols::finalizeOptions_name(), vmSymbols::bool_void_signature(), &args, THREAD); | 110 JavaCalls::call_static(&result, optionsKlass, vmSymbols::finalizeOptions_name(), vmSymbols::bool_void_signature(), &args, THREAD); |
111 check_pending_exception("Error while calling finalizeOptions"); | 111 check_pending_exception("Error while calling finalizeOptions"); |
112 } | 112 } |
113 | 113 |
114 void VMToCompiler::compileMethod(Method* method, int entry_bci, jboolean blocking) { | 114 void VMToCompiler::compileMethod(Method* method, int entry_bci, jlong ctask, jboolean blocking) { |
115 assert(method != NULL, "just checking"); | 115 assert(method != NULL, "just checking"); |
116 Thread* THREAD = Thread::current(); | 116 Thread* THREAD = Thread::current(); |
117 JavaValue result(T_VOID); | 117 JavaValue result(T_VOID); |
118 JavaCallArguments args; | 118 JavaCallArguments args; |
119 args.push_oop(instance()); | 119 args.push_oop(instance()); |
120 args.push_long((jlong) (address) method); | 120 args.push_long((jlong) (address) method); |
121 args.push_int(entry_bci); | 121 args.push_int(entry_bci); |
122 args.push_long(ctask); | |
122 args.push_int(blocking); | 123 args.push_int(blocking); |
123 JavaCalls::call_interface(&result, vmToCompilerKlass(), vmSymbols::compileMethod_name(), vmSymbols::compileMethod_signature(), &args, THREAD); | 124 JavaCalls::call_interface(&result, vmToCompilerKlass(), vmSymbols::compileMethod_name(), vmSymbols::compileMethod_signature(), &args, THREAD); |
124 check_pending_exception("Error while calling compileMethod"); | 125 check_pending_exception("Error while calling compileMethod"); |
125 } | 126 } |
126 | 127 |