< prev index next >

src/share/vm/jvmci/jvmciRuntime.cpp

Print this page
rev 11184 : 8156034: [JVMCI] Notify the jvmci compiler on completion of a bootstrap

@@ -801,10 +801,22 @@
     args.push_oop(receiver);
     JavaCalls::call_special(&result, receiver->klass(), vmSymbols::shutdown_method_name(), vmSymbols::void_method_signature(), &args, CHECK);
   }
 }
 
+void JVMCIRuntime::bootstrapFinished() {
+  if (_HotSpotJVMCIRuntime_instance != NULL) {
+    JavaThread* THREAD = JavaThread::current();
+    HandleMark hm(THREAD);
+    Handle receiver = get_HotSpotJVMCIRuntime(CHECK);
+    JavaValue result(T_VOID);
+    JavaCallArguments args;
+    args.push_oop(receiver);
+    JavaCalls::call_special(&result, receiver->klass(), vmSymbols::bootstrapFinished_method_name(), vmSymbols::void_method_signature(), &args, CHECK);
+  }
+}
+
 bool JVMCIRuntime::treat_as_trivial(Method* method) {
   if (_HotSpotJVMCIRuntime_initialized) {
     for (int i = 0; i < _trivial_prefixes_count; i++) {
       if (method->method_holder()->name()->starts_with(_trivial_prefixes[i])) {
         return true;
< prev index next >