Skip to content

Commit

Permalink
8269304: Regression ~5% in 2005 in b27
Browse files Browse the repository at this point in the history
Backport-of: 8d09596
  • Loading branch information
rwestrel committed Jul 15, 2021
1 parent 7a61e03 commit 8008d33
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 @@ -4786,7 +4786,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 8008d33

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