1.1 --- a/src/share/vm/oops/instanceKlass.cpp Tue Nov 29 14:44:44 2011 -0500 1.2 +++ b/src/share/vm/oops/instanceKlass.cpp Tue Dec 06 18:28:51 2011 -0500 1.3 @@ -208,7 +208,7 @@ 1.4 // abort if someone beat us to the initialization 1.5 if (!this_oop->is_not_initialized()) return; // note: not equivalent to is_initialized() 1.6 1.7 - ClassState old_state = this_oop->_init_state; 1.8 + ClassState old_state = this_oop->init_state(); 1.9 link_class_impl(this_oop, true, THREAD); 1.10 if (HAS_PENDING_EXCEPTION) { 1.11 CLEAR_PENDING_EXCEPTION; 1.12 @@ -2479,7 +2479,7 @@ 1.13 bool good_state = as_klassOop()->is_shared() ? (_init_state <= state) 1.14 : (_init_state < state); 1.15 assert(good_state || state == allocated, "illegal state transition"); 1.16 - _init_state = state; 1.17 + _init_state = (u1)state; 1.18 } 1.19 #endif 1.20