< prev index next >

src/hotspot/share/opto/parse1.cpp

Print this page

        

@@ -2110,11 +2110,12 @@
 // Add check to deoptimize once holder klass is fully initialized.
 void Parse::clinit_deopt() {
   assert(C->has_method(), "only for normal compilations");
   assert(depth() == 1, "only for main compiled method");
   assert(is_normal_parse(), "no barrier needed on osr entry");
-  assert(!method()->holder()->is_not_initialized(), "initialization should have been started");
+  assert(method()->holder()->is_being_initialized() || method()->holder()->is_initialized(),
+         "initialization should have been started");
 
   set_parse_bci(0);
 
   Node* holder = makecon(TypeKlassPtr::make(method()->holder()));
   guard_klass_being_initialized(holder);
< prev index next >