< prev index next >

src/share/vm/jvmci/jvmciCompiler.cpp

Print this page




  95     // Loop until there is something in the queue.
  96     do {
  97       os::sleep(THREAD, 100, true);
  98       qsize = CompileBroker::queue_size(CompLevel_full_optimization);
  99     } while (first_round && qsize == 0);
 100     first_round = false;
 101     if (PrintBootstrap) {
 102       while (z < (_methodsCompiled / 100)) {
 103         ++z;
 104         tty->print_raw(".");
 105       }
 106     }
 107   } while (qsize != 0);
 108 
 109   if (PrintBootstrap) {
 110     tty->print_cr(" in " JLONG_FORMAT " ms (compiled %d methods)", os::javaTimeMillis() - start, _methodsCompiled);
 111   }
 112   _bootstrapping = false;
 113 }
 114 
 115 void JVMCICompiler::compile_method(methodHandle method, int entry_bci, JVMCIEnv* env) {
 116   JVMCI_EXCEPTION_CONTEXT
 117 
 118   bool is_osr = entry_bci != InvocationEntryBci;
 119   if (_bootstrapping && is_osr) {
 120       // no OSR compilations during bootstrap - the compiler is just too slow at this point,
 121       // and we know that there are no endless loops
 122       return;
 123   }
 124 
 125   JVMCIRuntime::initialize_well_known_classes(CHECK_ABORT);
 126 
 127   HandleMark hm;
 128   ResourceMark rm;
 129   Handle receiver = JVMCIRuntime::get_HotSpotJVMCIRuntime(CHECK_ABORT);
 130 
 131   JavaValue method_result(T_OBJECT);
 132   JavaCallArguments args;
 133   args.push_long((jlong) (address) method());
 134   JavaCalls::call_static(&method_result, SystemDictionary::HotSpotResolvedJavaMethodImpl_klass(),
 135                          vmSymbols::fromMetaspace_name(), vmSymbols::method_fromMetaspace_signature(), &args, THREAD);




  95     // Loop until there is something in the queue.
  96     do {
  97       os::sleep(THREAD, 100, true);
  98       qsize = CompileBroker::queue_size(CompLevel_full_optimization);
  99     } while (first_round && qsize == 0);
 100     first_round = false;
 101     if (PrintBootstrap) {
 102       while (z < (_methodsCompiled / 100)) {
 103         ++z;
 104         tty->print_raw(".");
 105       }
 106     }
 107   } while (qsize != 0);
 108 
 109   if (PrintBootstrap) {
 110     tty->print_cr(" in " JLONG_FORMAT " ms (compiled %d methods)", os::javaTimeMillis() - start, _methodsCompiled);
 111   }
 112   _bootstrapping = false;
 113 }
 114 
 115 void JVMCICompiler::compile_method(const methodHandle& method, int entry_bci, JVMCIEnv* env) {
 116   JVMCI_EXCEPTION_CONTEXT
 117 
 118   bool is_osr = entry_bci != InvocationEntryBci;
 119   if (_bootstrapping && is_osr) {
 120       // no OSR compilations during bootstrap - the compiler is just too slow at this point,
 121       // and we know that there are no endless loops
 122       return;
 123   }
 124 
 125   JVMCIRuntime::initialize_well_known_classes(CHECK_ABORT);
 126 
 127   HandleMark hm;
 128   ResourceMark rm;
 129   Handle receiver = JVMCIRuntime::get_HotSpotJVMCIRuntime(CHECK_ABORT);
 130 
 131   JavaValue method_result(T_OBJECT);
 132   JavaCallArguments args;
 133   args.push_long((jlong) (address) method());
 134   JavaCalls::call_static(&method_result, SystemDictionary::HotSpotResolvedJavaMethodImpl_klass(),
 135                          vmSymbols::fromMetaspace_name(), vmSymbols::method_fromMetaspace_signature(), &args, THREAD);


< prev index next >