Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalVMToCompiler.cpp @ 10672:e7d07c9bb779
Removed priority compilation queue.
Fixed another race condition in the compilation queue.
Removed Graal-specific compilation policy.
author | Christian Haeubl <haeubl@ssw.jku.at> |
---|---|
date | Tue, 09 Jul 2013 17:53:58 +0200 |
parents | 3489047ffea2 |
children | 4e6d6122c558 |
comparison
equal
deleted
inserted
replaced
10665:dcee58529a1c | 10672:e7d07c9bb779 |
---|---|
104 JavaCalls::call_static(&result, compilerKlass, vmSymbols::setOption_name(), vmSymbols::setOption_signature(), option, THREAD); | 104 JavaCalls::call_static(&result, compilerKlass, vmSymbols::setOption_name(), vmSymbols::setOption_signature(), option, THREAD); |
105 check_pending_exception("Error while calling setOption"); | 105 check_pending_exception("Error while calling setOption"); |
106 return result.get_jboolean(); | 106 return result.get_jboolean(); |
107 } | 107 } |
108 | 108 |
109 void VMToCompiler::compileMethod(Method* method, Handle holder, int entry_bci, jboolean blocking, int priority) { | 109 void VMToCompiler::compileMethod(Method* method, Handle holder, int entry_bci, jboolean blocking) { |
110 assert(method != NULL, "just checking"); | 110 assert(method != NULL, "just checking"); |
111 assert(!holder.is_null(), "just checking"); | 111 assert(!holder.is_null(), "just checking"); |
112 Thread* THREAD = Thread::current(); | 112 Thread* THREAD = Thread::current(); |
113 JavaValue result(T_VOID); | 113 JavaValue result(T_VOID); |
114 JavaCallArguments args; | 114 JavaCallArguments args; |
115 args.push_oop(instance()); | 115 args.push_oop(instance()); |
116 args.push_long((jlong) (address) method); | 116 args.push_long((jlong) (address) method); |
117 args.push_oop(holder()); | 117 args.push_oop(holder()); |
118 args.push_int(entry_bci); | 118 args.push_int(entry_bci); |
119 args.push_int(blocking); | 119 args.push_int(blocking); |
120 args.push_int(priority); | |
121 JavaCalls::call_interface(&result, vmToCompilerKlass(), vmSymbols::compileMethod_name(), vmSymbols::compileMethod_signature(), &args, THREAD); | 120 JavaCalls::call_interface(&result, vmToCompilerKlass(), vmSymbols::compileMethod_name(), vmSymbols::compileMethod_signature(), &args, THREAD); |
122 check_pending_exception("Error while calling compileMethod"); | 121 check_pending_exception("Error while calling compileMethod"); |
123 } | 122 } |
124 | 123 |
125 void VMToCompiler::shutdownCompiler() { | 124 void VMToCompiler::shutdownCompiler() { |