Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
/ jdk17 Public archive

Commit

Permalink
8269304: Regression ~5% in 2005 in b27
Browse files Browse the repository at this point in the history
Reviewed-by: dlong, roland
  • Loading branch information
Vladimir Kozlov committed Jun 28, 2021
1 parent e4c5446 commit 8d09596
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hotspot/share/opto/compile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4514,7 +4514,9 @@ bool Compile::coarsened_locks_consistent() {
bool modified = false; // track locks kind modifications
Lock_List* locks_list = (Lock_List*)_coarsened_locks.at(i);
uint size = locks_list->size();
if (size != locks_list->origin_cnt()) {
if (size == 0) {
unbalanced = false; // All locks were eliminated - good
} else if (size != locks_list->origin_cnt()) {
unbalanced = true; // Some locks were removed from list
} else {
for (uint j = 0; j < size; j++) {
Expand Down

1 comment on commit 8d09596

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