diff src/share/vm/graal/graalVMExits.cpp @ 3650:0e8a2a629afb

Pass-by compilation broker.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Wed, 16 Nov 2011 21:27:28 +0100
parents c7d4198a9bce
children a31028282e3e
line wrap: on
line diff
--- a/src/share/vm/graal/graalVMExits.cpp	Wed Nov 16 16:46:32 2011 +0100
+++ b/src/share/vm/graal/graalVMExits.cpp	Wed Nov 16 21:27:28 2011 +0100
@@ -73,8 +73,6 @@
   JavaValue result(T_VOID);
   JavaCalls::call_static(&result, compilerImplKlass, vmSymbols::initialize_name(), vmSymbols::void_method_signature(), Thread::current());
   check_pending_exception("Couldn't initialize compiler");
-
-  startCompiler();
 }
 
 jboolean VMExits::setOption(Handle option) {
@@ -140,6 +138,15 @@
   check_pending_exception("Error while calling startCompiler");
 }
 
+void VMExits::bootstrap() {
+  JavaThread* THREAD = JavaThread::current();
+  JavaValue result(T_VOID);
+  JavaCallArguments args;
+  args.push_oop(instance());
+  JavaCalls::call_interface(&result, vmExitsKlass(), vmSymbols::bootstrap_name(), vmSymbols::void_method_signature(), &args, THREAD);
+  check_pending_exception("Error while calling boostrap");
+}
+
 void VMExits::pollJavaQueue() {
   JavaThread* THREAD = JavaThread::current();
   JavaValue result(T_VOID);