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: mbaesken
Backport-of: d583767bf17aea55d361a1d1713444fc41fa9911
  • Loading branch information
GoeLin committed Apr 25, 2023
1 parent ee63f83 commit 3e0e4f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/compiler/compileBroker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2905,13 +2905,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 != NULL) || (function_lock_1 != NULL)) {
if ((function_lock_1 != NULL) || (function_lock_2 != NULL)) {
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 != NULL) || (function_lock_1 != NULL)) {
if ((function_lock_1 != NULL) || (function_lock_2 != NULL)) {
out->print_cr("\n__ Compile & CodeCache (function) lock hold took %10.3f seconds _________\n", ts.seconds());
}
}
Expand Down

1 comment on commit 3e0e4f0

@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.