< prev index next >

src/hotspot/share/opto/compile.cpp

Print this page
rev 55090 : secret-sfac

@@ -3962,11 +3962,11 @@
   }
 }
 
 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
 //------------------------------verify_graph_edges---------------------------
 // Walk the Graph and verify that there is a one-to-one correspondence
< prev index next >