< 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
rev 11189 : update


 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::bootstrap_finished(TRAPS) {
 807   HandleMark hm(THREAD);
 808   Handle receiver = get_HotSpotJVMCIRuntime(CHECK);
 809   JavaValue result(T_VOID);
 810   JavaCallArguments args;
 811   args.push_oop(receiver);
 812   JavaCalls::call_special(&result, receiver->klass(), vmSymbols::bootstrapFinished_method_name(), vmSymbols::void_method_signature(), &args, CHECK);
 813 }
 814 
 815 bool JVMCIRuntime::treat_as_trivial(Method* method) {
 816   if (_HotSpotJVMCIRuntime_initialized) {
 817     for (int i = 0; i < _trivial_prefixes_count; i++) {
 818       if (method->method_holder()->name()->starts_with(_trivial_prefixes[i])) {
 819         return true;
 820       }
 821     }
 822   }
 823   return false;
 824 }
< prev index next >