Mercurial > hg > truffle
comparison src/share/vm/graal/graalVMToCompiler.cpp @ 5018:bf63d72879aa
fixed an issue that prevented java.util.concurrent methods from being compiled
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Fri, 02 Mar 2012 16:44:36 -0800 |
parents | e0a4668c57a2 |
children | 5e9f38419819 |
comparison
equal
deleted
inserted
replaced
5005:c2ebd3d559f7 | 5018:bf63d72879aa |
---|---|
95 JavaValue result(T_VOID); | 95 JavaValue result(T_VOID); |
96 JavaCalls::call_static(&result, compilerKlass, vmSymbols::setDefaultOptions_name(), vmSymbols::void_method_signature(), THREAD); | 96 JavaCalls::call_static(&result, compilerKlass, vmSymbols::setDefaultOptions_name(), vmSymbols::void_method_signature(), THREAD); |
97 check_pending_exception("Error while calling setDefaultOptions"); | 97 check_pending_exception("Error while calling setDefaultOptions"); |
98 } | 98 } |
99 | 99 |
100 void VMToCompiler::compileMethod(Handle hotspot_method, int entry_bci, jboolean blocking) { | 100 jboolean VMToCompiler::compileMethod(Handle hotspot_method, int entry_bci, jboolean blocking) { |
101 assert(!hotspot_method.is_null(), "just checking"); | 101 assert(!hotspot_method.is_null(), "just checking"); |
102 Thread* THREAD = Thread::current(); | 102 Thread* THREAD = Thread::current(); |
103 JavaValue result(T_VOID); | 103 JavaValue result(T_BOOLEAN); |
104 JavaCallArguments args; | 104 JavaCallArguments args; |
105 args.push_oop(instance()); | 105 args.push_oop(instance()); |
106 args.push_oop(hotspot_method); | 106 args.push_oop(hotspot_method); |
107 args.push_int(entry_bci); | 107 args.push_int(entry_bci); |
108 args.push_int(blocking); | 108 args.push_int(blocking); |
109 JavaCalls::call_interface(&result, vmExitsKlass(), vmSymbols::compileMethod_name(), vmSymbols::compileMethod_signature(), &args, THREAD); | 109 JavaCalls::call_interface(&result, vmExitsKlass(), vmSymbols::compileMethod_name(), vmSymbols::compileMethod_signature(), &args, THREAD); |
110 check_pending_exception("Error while calling compileMethod"); | 110 check_pending_exception("Error while calling compileMethod"); |
111 return result.get_jboolean(); | |
111 } | 112 } |
112 | 113 |
113 void VMToCompiler::shutdownCompiler() { | 114 void VMToCompiler::shutdownCompiler() { |
114 if (_compilerPermObject != NULL) { | 115 if (_compilerPermObject != NULL) { |
115 HandleMark hm; | 116 HandleMark hm; |