--- a/src/hotspot/share/oops/instanceKlass.cpp Wed Jan 09 08:07:23 2019 -0500
+++ b/src/hotspot/share/oops/instanceKlass.cpp Wed Jan 09 07:52:45 2019 -0500
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -3662,14 +3662,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