< prev index next >

src/hotspot/share/compiler/compileBroker.cpp

Print this page
*** 1247,11 ***
        // In libjvmci, JVMCI initialization should not deadlock with other threads
        if (!UseJVMCINativeLibrary) {
          // Don't allow blocking compiles if inside a class initializer or while performing class loading
          vframeStream vfst(JavaThread::cast(thread));
          for (; !vfst.at_end(); vfst.next()) {
!           if (vfst.method()->is_static_initializer() ||
                (vfst.method()->method_holder()->is_subclass_of(vmClasses::ClassLoader_klass()) &&
                    vfst.method()->name() == vmSymbols::loadClass_name())) {
              blocking = false;
              break;
            }
--- 1247,11 ---
        // In libjvmci, JVMCI initialization should not deadlock with other threads
        if (!UseJVMCINativeLibrary) {
          // Don't allow blocking compiles if inside a class initializer or while performing class loading
          vframeStream vfst(JavaThread::cast(thread));
          for (; !vfst.at_end(); vfst.next()) {
!         if (vfst.method()->is_class_initializer() ||
                (vfst.method()->method_holder()->is_subclass_of(vmClasses::ClassLoader_klass()) &&
                    vfst.method()->name() == vmSymbols::loadClass_name())) {
              blocking = false;
              break;
            }
< prev index next >