--- old/src/hotspot/share/compiler/compileBroker.cpp 2019-04-24 13:36:02.000000000 -0700 +++ new/src/hotspot/share/compiler/compileBroker.cpp 2019-04-24 13:36:02.000000000 -0700 @@ -1074,7 +1074,7 @@ // Don't allow blocking compiles if inside a class initializer or while performing class loading vframeStream vfst((JavaThread*) thread); for (; !vfst.at_end(); vfst.next()) { - if (vfst.method()->is_static_initializer() || + if (vfst.method()->is_class_initializer() || (vfst.method()->method_holder()->is_subclass_of(SystemDictionary::ClassLoader_klass()) && vfst.method()->name() == vmSymbols::loadClass_name())) { blocking = false;