Description
HotSpot doesn't define the DEBUG macro, so the assert assert_lock_strong call is not included even in a debug build.
The code should be changed to #ifdef ASSERT instead.
bool nmethod::try_transition(int new_state_int) {
signed char new_state = new_state_int;
#ifdef DEBUG
if (new_state != unloaded) {
assert_lock_strong(CompiledMethod_lock);
}
#endif
The code should be changed to #ifdef ASSERT instead.
bool nmethod::try_transition(int new_state_int) {
signed char new_state = new_state_int;
#ifdef DEBUG
if (new_state != unloaded) {
assert_lock_strong(CompiledMethod_lock);
}
#endif
Attachments
Issue Links
- relates to
-
JDK-8226705 [REDO] Deoptimize with handshakes
-
- Resolved
-