Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalVMExits.cpp @ 3651:a31028282e3e
Support blocking compilation.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Wed, 16 Nov 2011 23:35:03 +0100 |
parents | 0e8a2a629afb |
children | 50a1d38cd7ac |
comparison
equal
deleted
inserted
replaced
3650:0e8a2a629afb | 3651:a31028282e3e |
---|---|
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 VMExits::compileMethod(Handle hotspot_method, int entry_bci) { | 100 void VMExits::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_VOID); |
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 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); |
109 check_pending_exception("Error while calling compileMethod"); | 110 check_pending_exception("Error while calling compileMethod"); |
110 } | 111 } |
111 | 112 |
112 void VMExits::shutdownCompiler() { | 113 void VMExits::shutdownCompiler() { |