Skip to content
Permalink
Browse files
8263446: Avoid unary minus over unsigned type in ObjectSynchronizer::…
…dec_in_use_list_ceiling

Reviewed-by: eosterlund, dcubed
  • Loading branch information
shipilev committed Mar 15, 2021
1 parent b371f90 commit ba22e6f6fa462cbfe669a0ddd8ef74c379ba3289
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1110,7 +1110,7 @@ size_t ObjectSynchronizer::in_use_list_ceiling() {
}

void ObjectSynchronizer::dec_in_use_list_ceiling() {
Atomic::add(&_in_use_list_ceiling, -AvgMonitorsPerThreadEstimate);
Atomic::sub(&_in_use_list_ceiling, AvgMonitorsPerThreadEstimate);
}

void ObjectSynchronizer::inc_in_use_list_ceiling() {

0 comments on commit ba22e6f

Please sign in to comment.