< prev index next >

src/hotspot/cpu/x86/c1_LIRAssembler_x86.cpp

Print this page

        

@@ -359,11 +359,12 @@
   return offset;
 }
 
 void LIR_Assembler::clinit_barrier(ciMethod* method) {
   assert(VM_Version::supports_fast_class_init_checks(), "sanity");
-  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");
 
   Label L_skip_barrier;
   Register klass = rscratch1;
   Register thread = LP64_ONLY( r15_thread ) NOT_LP64( noreg );
   assert(thread != noreg, "x86_32 not implemented");
< prev index next >