< 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


 786     warning(message); \
 787     char buf[512]; \
 788     jio_snprintf(buf, 512, "Uncaught exception at %s:%d", __FILE__, __LINE__); \
 789     JVMCIRuntime::abort_on_pending_exception(PENDING_EXCEPTION, buf); \
 790     return; \
 791   } \
 792   (void)(0
 793 
 794 void JVMCIRuntime::shutdown(TRAPS) {
 795   if (_HotSpotJVMCIRuntime_instance != NULL) {
 796     _shutdown_called = true;
 797     HandleMark hm(THREAD);
 798     Handle receiver = get_HotSpotJVMCIRuntime(CHECK);
 799     JavaValue result(T_VOID);
 800     JavaCallArguments args;
 801     args.push_oop(receiver);
 802     JavaCalls::call_special(&result, receiver->klass(), vmSymbols::shutdown_method_name(), vmSymbols::void_method_signature(), &args, CHECK);
 803   }
 804 }
 805 












 806 bool JVMCIRuntime::treat_as_trivial(Method* method) {
 807   if (_HotSpotJVMCIRuntime_initialized) {
 808     for (int i = 0; i < _trivial_prefixes_count; i++) {
 809       if (method->method_holder()->name()->starts_with(_trivial_prefixes[i])) {
 810         return true;
 811       }
 812     }
 813   }
 814   return false;
 815 }


 786     warning(message); \
 787     char buf[512]; \
 788     jio_snprintf(buf, 512, "Uncaught exception at %s:%d", __FILE__, __LINE__); \
 789     JVMCIRuntime::abort_on_pending_exception(PENDING_EXCEPTION, buf); \
 790     return; \
 791   } \
 792   (void)(0
 793 
 794 void JVMCIRuntime::shutdown(TRAPS) {
 795   if (_HotSpotJVMCIRuntime_instance != NULL) {
 796     _shutdown_called = true;
 797     HandleMark hm(THREAD);
 798     Handle receiver = get_HotSpotJVMCIRuntime(CHECK);
 799     JavaValue result(T_VOID);
 800     JavaCallArguments args;
 801     args.push_oop(receiver);
 802     JavaCalls::call_special(&result, receiver->klass(), vmSymbols::shutdown_method_name(), vmSymbols::void_method_signature(), &args, CHECK);
 803   }
 804 }
 805 
 806 void JVMCIRuntime::bootstrapFinished() {
 807   if (_HotSpotJVMCIRuntime_instance != NULL) {
 808     JavaThread* THREAD = JavaThread::current();
 809     HandleMark hm(THREAD);
 810     Handle receiver = get_HotSpotJVMCIRuntime(CHECK);
 811     JavaValue result(T_VOID);
 812     JavaCallArguments args;
 813     args.push_oop(receiver);
 814     JavaCalls::call_special(&result, receiver->klass(), vmSymbols::bootstrapFinished_method_name(), vmSymbols::void_method_signature(), &args, CHECK);
 815   }
 816 }
 817 
 818 bool JVMCIRuntime::treat_as_trivial(Method* method) {
 819   if (_HotSpotJVMCIRuntime_initialized) {
 820     for (int i = 0; i < _trivial_prefixes_count; i++) {
 821       if (method->method_holder()->name()->starts_with(_trivial_prefixes[i])) {
 822         return true;
 823       }
 824     }
 825   }
 826   return false;
 827 }
< prev index next >