Skip to content

Commit

Permalink
8301338: Identical branch conditions in CompileBroker::print_heapinfo
Browse files Browse the repository at this point in the history
Reviewed-by: thartmann
  • Loading branch information
shipilev committed Jan 31, 2023
1 parent 810c8a2 commit d583767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/compiler/compileBroker.cpp
Expand Up @@ -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());
}
}
Expand Down

1 comment on commit d583767

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.