aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Robbin Ehn <rehn@openjdk.org> 2021-04-16 07:19:49 +0000
committerGravatar Robbin Ehn <rehn@openjdk.org> 2021-04-16 07:19:49 +0000
commit50f3da8d59b4379f6e99f48d53694086e29bd83c (patch)
tree390895b02ab89306f063c485728a86234dc88a24
parente0151a6fb1f779e556c8d38d9f8f1234d76e65fc (diff)
downloadjdk-50f3da8d59b4379f6e99f48d53694086e29bd83c.tar.gz
jdk-50f3da8d59b4379f6e99f48d53694086e29bd83c.zip
8264480: Unreachable code in nmethod.cpp inside #ifdef DEBUG
Reviewed-by: chagedorn, kvn
-rw-r--r--src/hotspot/share/code/nmethod.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hotspot/share/code/nmethod.cpp b/src/hotspot/share/code/nmethod.cpp
index 6a5fc1c9ce2..b23a8355380 100644
--- a/src/hotspot/share/code/nmethod.cpp
+++ b/src/hotspot/share/code/nmethod.cpp
@@ -1170,7 +1170,7 @@ void nmethod::inc_decompile_count() {
bool nmethod::try_transition(int new_state_int) {
signed char new_state = new_state_int;
-#ifdef DEBUG
+#ifdef ASSERT
if (new_state != unloaded) {
assert_lock_strong(CompiledMethod_lock);
}