From d583767bf17aea55d361a1d1713444fc41fa9911 Mon Sep 17 00:00:00 2001 From: Aleksey Shipilev Date: Tue, 31 Jan 2023 11:06:47 +0000 Subject: [PATCH] 8301338: Identical branch conditions in CompileBroker::print_heapinfo Reviewed-by: thartmann --- src/hotspot/share/compiler/compileBroker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotspot/share/compiler/compileBroker.cpp b/src/hotspot/share/compiler/compileBroker.cpp index 9ce8e992e6d..db986d69e95 100644 --- a/src/hotspot/share/compiler/compileBroker.cpp +++ b/src/hotspot/share/compiler/compileBroker.cpp @@ -2782,13 +2782,13 @@ void CompileBroker::print_heapinfo(outputStream* out, const char* function, size ts.update(); // record starting point MutexLocker mu11(function_lock_1, Mutex::_safepoint_check_flag); MutexLocker mu22(function_lock_2, Mutex::_no_safepoint_check_flag); - if ((function_lock_1 != nullptr) || (function_lock_1 != nullptr)) { + if ((function_lock_1 != nullptr) || (function_lock_2 != nullptr)) { out->print_cr("\n__ Compile & CodeCache (function) lock wait took %10.3f seconds _________\n", ts.seconds()); } ts.update(); // record starting point CodeCache::aggregate(out, granularity); - if ((function_lock_1 != nullptr) || (function_lock_1 != nullptr)) { + if ((function_lock_1 != nullptr) || (function_lock_2 != nullptr)) { out->print_cr("\n__ Compile & CodeCache (function) lock hold took %10.3f seconds _________\n", ts.seconds()); } }