-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: None
-
Component/s: hotspot
-
b07
```
if (decr_tenuring_threshold && !(AlwaysTenure || NeverTenure)) {
if (tenuring_threshold > 1) {
tenuring_threshold--;
}
} else if (incr_tenuring_threshold && !(AlwaysTenure || NeverTenure)) {
if (tenuring_threshold < MaxTenuringThreshold) {
tenuring_threshold++;
}
}
```
The common expression, `!(AlwaysTenure || NeverTenure)`, can be extracted out to a higher level to simplify the flow.
if (decr_tenuring_threshold && !(AlwaysTenure || NeverTenure)) {
if (tenuring_threshold > 1) {
tenuring_threshold--;
}
} else if (incr_tenuring_threshold && !(AlwaysTenure || NeverTenure)) {
if (tenuring_threshold < MaxTenuringThreshold) {
tenuring_threshold++;
}
}
```
The common expression, `!(AlwaysTenure || NeverTenure)`, can be extracted out to a higher level to simplify the flow.
- links to
-
Commit(master)
openjdk/jdk/c207cc7e
-
Review(master)
openjdk/jdk/23155