3603 #ifdef ASSERT |
3603 #ifdef ASSERT |
3604 void InstanceKlass::set_init_state(ClassState state) { |
3604 void InstanceKlass::set_init_state(ClassState state) { |
3605 bool good_state = is_shared() ? (_init_state <= state) |
3605 bool good_state = is_shared() ? (_init_state <= state) |
3606 : (_init_state < state); |
3606 : (_init_state < state); |
3607 assert(good_state || state == allocated, "illegal state transition"); |
3607 assert(good_state || state == allocated, "illegal state transition"); |
3608 set_initialization_state_and_notify_implassert(_init_thread == NULL, "should be cleared before state change"); |
3608 assert(_init_thread == NULL, "should be cleared before state change"); |
3609 _init_state = (u1)state; |
3609 _init_state = (u1)state; |
3610 } |
3610 } |
3611 #endif |
3611 #endif |
3612 |
3612 |
3613 |
3613 |