mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8269304: Regression ~5% in 2005 in b27
Reviewed-by: dlong, roland
This commit is contained in:
parent
e4c5446340
commit
8d09596f27
1 changed files with 3 additions and 1 deletions
|
@ -4514,7 +4514,9 @@ bool Compile::coarsened_locks_consistent() {
|
||||||
bool modified = false; // track locks kind modifications
|
bool modified = false; // track locks kind modifications
|
||||||
Lock_List* locks_list = (Lock_List*)_coarsened_locks.at(i);
|
Lock_List* locks_list = (Lock_List*)_coarsened_locks.at(i);
|
||||||
uint size = locks_list->size();
|
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
|
unbalanced = true; // Some locks were removed from list
|
||||||
} else {
|
} else {
|
||||||
for (uint j = 0; j < size; j++) {
|
for (uint j = 0; j < size; j++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue