src/hotspot/share/oops/instanceKlass.cpp
changeset 53232 32c6cc430526
parent 53152 08db5aa02f7b
parent 53225 b11483a74e5d
child 53293 64049c8e7452
--- a/src/hotspot/share/oops/instanceKlass.cpp	Tue Jan 08 17:37:57 2019 -0800
+++ b/src/hotspot/share/oops/instanceKlass.cpp	Wed Jan 09 22:59:49 2019 +0100
@@ -3654,14 +3654,14 @@
   }
 }
 
+void InstanceKlass::set_init_state(ClassState state) {
 #ifdef ASSERT
-void InstanceKlass::set_init_state(ClassState state) {
   bool good_state = is_shared() ? (_init_state <= state)
                                                : (_init_state < state);
   assert(good_state || state == allocated, "illegal state transition");
+#endif
   _init_state = (u1)state;
 }
-#endif
 
 #if INCLUDE_JVMTI