--- old/src/hotspot/share/opto/compile.cpp 2019-04-24 13:36:29.000000000 -0700 +++ new/src/hotspot/share/opto/compile.cpp 2019-04-24 13:36:28.000000000 -0700 @@ -3964,7 +3964,7 @@ bool Compile::is_compiling_clinit_for(ciKlass* k) { ciMethod* root = method(); // the root method of compilation - return root->is_static_initializer() && root->holder() == k; // access in the context of clinit + return root->is_class_initializer() && root->holder() == k; // access in the context of clinit } #ifndef PRODUCT