< prev index next >

src/hotspot/share/jvmci/jvmciCompiler.cpp

Print this page
*** 85,11 ***
    Array<Method*>* objectMethods = vmClasses::Object_klass()->methods();
    // Initialize compile queue with a selected set of methods.
    int len = objectMethods->length();
    for (int i = 0; i < len; i++) {
      methodHandle mh(THREAD, objectMethods->at(i));
!     if (!mh->is_native() && !mh->is_static() && !mh->is_initializer()) {
        ResourceMark rm;
        int hot_count = 10; // TODO: what's the appropriate value?
        CompileBroker::compile_method(mh, InvocationEntryBci, CompLevel_full_optimization, mh, hot_count, CompileTask::Reason_Bootstrap, CHECK);
      }
    }
--- 85,14 ---
    Array<Method*>* objectMethods = vmClasses::Object_klass()->methods();
    // Initialize compile queue with a selected set of methods.
    int len = objectMethods->length();
    for (int i = 0; i < len; i++) {
      methodHandle mh(THREAD, objectMethods->at(i));
!     if (!mh->is_native() &&
+         !mh->is_static() &&
+         !mh->is_object_constructor() &&
+         !mh->is_class_initializer()) {
        ResourceMark rm;
        int hot_count = 10; // TODO: what's the appropriate value?
        CompileBroker::compile_method(mh, InvocationEntryBci, CompLevel_full_optimization, mh, hot_count, CompileTask::Reason_Bootstrap, CHECK);
      }
    }
< prev index next >