src/hotspot/share/jvmci/jvmciCompiler.cpp
changeset 59056 15936b142f86
parent 58177 4932dce35882
equal deleted inserted replaced
59055:57ad70bcf06c 59056:15936b142f86
    65 
    65 
    66   Array<Method*>* objectMethods = SystemDictionary::Object_klass()->methods();
    66   Array<Method*>* objectMethods = SystemDictionary::Object_klass()->methods();
    67   // Initialize compile queue with a selected set of methods.
    67   // Initialize compile queue with a selected set of methods.
    68   int len = objectMethods->length();
    68   int len = objectMethods->length();
    69   for (int i = 0; i < len; i++) {
    69   for (int i = 0; i < len; i++) {
    70     methodHandle mh = objectMethods->at(i);
    70     methodHandle mh(THREAD, objectMethods->at(i));
    71     if (!mh->is_native() && !mh->is_static() && !mh->is_initializer()) {
    71     if (!mh->is_native() && !mh->is_static() && !mh->is_initializer()) {
    72       ResourceMark rm;
    72       ResourceMark rm;
    73       int hot_count = 10; // TODO: what's the appropriate value?
    73       int hot_count = 10; // TODO: what's the appropriate value?
    74       CompileBroker::compile_method(mh, InvocationEntryBci, CompLevel_full_optimization, mh, hot_count, CompileTask::Reason_Bootstrap, THREAD);
    74       CompileBroker::compile_method(mh, InvocationEntryBci, CompLevel_full_optimization, mh, hot_count, CompileTask::Reason_Bootstrap, THREAD);
    75     }
    75     }
    98   }
    98   }
    99   _bootstrapping = false;
    99   _bootstrapping = false;
   100   JVMCI::compiler_runtime()->bootstrap_finished(CHECK);
   100   JVMCI::compiler_runtime()->bootstrap_finished(CHECK);
   101 }
   101 }
   102 
   102 
   103 bool JVMCICompiler::force_comp_at_level_simple(Method *method) {
   103 bool JVMCICompiler::force_comp_at_level_simple(const methodHandle& method) {
   104   if (UseJVMCINativeLibrary) {
   104   if (UseJVMCINativeLibrary) {
   105     // This mechanism exists to force compilation of a JVMCI compiler by C1
   105     // This mechanism exists to force compilation of a JVMCI compiler by C1
   106     // to reduces the compilation time spent on the JVMCI compiler itself. In
   106     // to reduces the compilation time spent on the JVMCI compiler itself. In
   107     // +UseJVMCINativeLibrary mode, the JVMCI compiler is AOT compiled.
   107     // +UseJVMCINativeLibrary mode, the JVMCI compiler is AOT compiled.
   108     return false;
   108     return false;