diff 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
line wrap: on
line diff
--- a/src/share/vm/graal/graalVMExits.cpp	Tue Oct 25 14:44:32 2011 +0200
+++ b/src/share/vm/graal/graalVMExits.cpp	Wed Nov 09 11:27:38 2011 +0100
@@ -140,6 +140,15 @@
   check_pending_exception("Error while calling startCompiler");
 }
 
+void VMExits::pollJavaQueue() {
+  JavaThread* THREAD = JavaThread::current();
+  JavaValue result(T_VOID);
+  JavaCallArguments args;
+  args.push_oop(instance());
+  JavaCalls::call_interface(&result, vmExitsKlass(), vmSymbols::pollJavaQueue_name(), vmSymbols::void_method_signature(), &args, THREAD);
+  check_pending_exception("Error while calling pollJavaQueue");
+}
+
 oop VMExits::createRiMethodResolved(jlong vmId, Handle name, TRAPS) {
   assert(!name.is_null(), "just checking");
   JavaValue result(T_OBJECT);