src/hotspot/share/oops/instanceKlass.cpp
changeset 53232 32c6cc430526
parent 53152 08db5aa02f7b
parent 53225 b11483a74e5d
child 53293 64049c8e7452
equal deleted inserted replaced
53213:716c746165b2 53232:32c6cc430526
  3652 #endif
  3652 #endif
  3653     current = current->next();
  3653     current = current->next();
  3654   }
  3654   }
  3655 }
  3655 }
  3656 
  3656 
       
  3657 void InstanceKlass::set_init_state(ClassState state) {
  3657 #ifdef ASSERT
  3658 #ifdef ASSERT
  3658 void InstanceKlass::set_init_state(ClassState state) {
       
  3659   bool good_state = is_shared() ? (_init_state <= state)
  3659   bool good_state = is_shared() ? (_init_state <= state)
  3660                                                : (_init_state < state);
  3660                                                : (_init_state < state);
  3661   assert(good_state || state == allocated, "illegal state transition");
  3661   assert(good_state || state == allocated, "illegal state transition");
       
  3662 #endif
  3662   _init_state = (u1)state;
  3663   _init_state = (u1)state;
  3663 }
  3664 }
  3664 #endif
       
  3665 
  3665 
  3666 #if INCLUDE_JVMTI
  3666 #if INCLUDE_JVMTI
  3667 
  3667 
  3668 // RedefineClasses() support for previous versions
  3668 // RedefineClasses() support for previous versions
  3669 
  3669