src/hotspot/share/jvmci/jvmciCompiler.cpp
changeset 50858 2d3e99a72541
parent 49480 d7df2dd501ce
child 52934 8deeb7bba516
equal deleted inserted replaced
50857:a9938374a9f4 50858:2d3e99a72541
   213     // Only report an error once
   213     // Only report an error once
   214     tty->print_raw_cr(message);
   214     tty->print_raw_cr(message);
   215     Handle ex(THREAD, exception);
   215     Handle ex(THREAD, exception);
   216     java_lang_Throwable::java_printStackTrace(ex, THREAD);
   216     java_lang_Throwable::java_printStackTrace(ex, THREAD);
   217   } else {
   217   } else {
   218     // Allow error reporting thread to print the stack trace.
   218     // Allow error reporting thread to print the stack trace.  Windows
   219     os::sleep(THREAD, 200, false);
   219     // doesn't allow uninterruptible wait for JavaThreads
       
   220     const bool interruptible = true;
       
   221     os::sleep(THREAD, 200, interruptible);
   220   }
   222   }
   221 
   223 
   222   before_exit(THREAD);
   224   before_exit(THREAD);
   223   vm_exit(-1);
   225   vm_exit(-1);
   224 }
   226 }
   225 
   227 
   226 // Compilation entry point for methods
   228 // Compilation entry point for methods
   227 void JVMCICompiler::compile_method(ciEnv* env, ciMethod* target, int entry_bci, DirectiveSet* directive) {
   229 void JVMCICompiler::compile_method(ciEnv* env, ciMethod* target, int entry_bci, DirectiveSet* directive) {
   228   ShouldNotReachHere();
   230   ShouldNotReachHere();
   229 }
       
   230 
       
   231 bool JVMCICompiler::is_trivial(Method* method) {
       
   232   if (_bootstrapping) {
       
   233     return false;
       
   234   }
       
   235   return JVMCIRuntime::treat_as_trivial(method);
       
   236 }
   231 }
   237 
   232 
   238 // Print compilation timers and statistics
   233 // Print compilation timers and statistics
   239 void JVMCICompiler::print_timers() {
   234 void JVMCICompiler::print_timers() {
   240   print_compilation_timers();
   235   print_compilation_timers();