hotspot/src/share/vm/oops/instanceKlass.cpp
changeset 11407 5399831730cd
parent 10739 91935236600e
child 12231 6a9cfc59a18a
child 12114 9a825a536095
--- a/hotspot/src/share/vm/oops/instanceKlass.cpp	Tue Nov 29 14:44:44 2011 -0500
+++ b/hotspot/src/share/vm/oops/instanceKlass.cpp	Tue Dec 06 18:28:51 2011 -0500
@@ -208,7 +208,7 @@
   // abort if someone beat us to the initialization
   if (!this_oop->is_not_initialized()) return;  // note: not equivalent to is_initialized()
 
-  ClassState old_state = this_oop->_init_state;
+  ClassState old_state = this_oop->init_state();
   link_class_impl(this_oop, true, THREAD);
   if (HAS_PENDING_EXCEPTION) {
     CLEAR_PENDING_EXCEPTION;
@@ -2479,7 +2479,7 @@
   bool good_state = as_klassOop()->is_shared() ? (_init_state <= state)
                                                : (_init_state < state);
   assert(good_state || state == allocated, "illegal state transition");
-  _init_state = state;
+  _init_state = (u1)state;
 }
 #endif