-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 17
-
Component/s: hotspot
-
b14
SonarCloud complains:
Unary minus should not be applied to an unsigned expression
Here:
void ObjectSynchronizer::dec_in_use_list_ceiling() {
Atomic::add(&_in_use_list_ceiling, -AvgMonitorsPerThreadEstimate);
}
We can instead use Atomic::sub.
Unary minus should not be applied to an unsigned expression
Here:
void ObjectSynchronizer::dec_in_use_list_ceiling() {
Atomic::add(&_in_use_list_ceiling, -AvgMonitorsPerThreadEstimate);
}
We can instead use Atomic::sub.
- relates to
-
JDK-8259349 -XX:AvgMonitorsPerThreadEstimate=1 does not work right
-
- Resolved
-