comparison src/share/vm/graal/graalVMExits.cpp @ 3619:5e9645341ec3

support for new RiRuntime features: add code without making it the default for the method, executing Java tasks on the compile thread, communicate nmethod reference to Java code as HotSpotCompiledMethod
author Lukas Stadler <lukas.stadler@jku.at>
date Wed, 09 Nov 2011 11:27:38 +0100
parents f00918f35c7f
children 136ea96eb7f8
comparison
equal deleted inserted replaced
3601:3822c5969a8b 3619:5e9645341ec3
138 args.push_oop(instance()); 138 args.push_oop(instance());
139 JavaCalls::call_interface(&result, vmExitsKlass(), vmSymbols::startCompiler_name(), vmSymbols::void_method_signature(), &args, THREAD); 139 JavaCalls::call_interface(&result, vmExitsKlass(), vmSymbols::startCompiler_name(), vmSymbols::void_method_signature(), &args, THREAD);
140 check_pending_exception("Error while calling startCompiler"); 140 check_pending_exception("Error while calling startCompiler");
141 } 141 }
142 142
143 void VMExits::pollJavaQueue() {
144 JavaThread* THREAD = JavaThread::current();
145 JavaValue result(T_VOID);
146 JavaCallArguments args;
147 args.push_oop(instance());
148 JavaCalls::call_interface(&result, vmExitsKlass(), vmSymbols::pollJavaQueue_name(), vmSymbols::void_method_signature(), &args, THREAD);
149 check_pending_exception("Error while calling pollJavaQueue");
150 }
151
143 oop VMExits::createRiMethodResolved(jlong vmId, Handle name, TRAPS) { 152 oop VMExits::createRiMethodResolved(jlong vmId, Handle name, TRAPS) {
144 assert(!name.is_null(), "just checking"); 153 assert(!name.is_null(), "just checking");
145 JavaValue result(T_OBJECT); 154 JavaValue result(T_OBJECT);
146 JavaCallArguments args; 155 JavaCallArguments args;
147 args.push_oop(instance()); 156 args.push_oop(instance());