mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8234737: Harmonize parameter order in Atomic - add
Reviewed-by: rehn, dholmes
This commit is contained in:
parent
8db2c1158e
commit
d45ec50076
82 changed files with 234 additions and 229 deletions
|
@ -214,11 +214,11 @@ void StringTable::create_table() {
|
|||
}
|
||||
|
||||
size_t StringTable::item_added() {
|
||||
return Atomic::add((size_t)1, &_items_count);
|
||||
return Atomic::add(&_items_count, (size_t)1);
|
||||
}
|
||||
|
||||
size_t StringTable::add_items_to_clean(size_t ndead) {
|
||||
size_t total = Atomic::add((size_t)ndead, &_uncleaned_items_count);
|
||||
size_t total = Atomic::add(&_uncleaned_items_count, (size_t)ndead);
|
||||
log_trace(stringtable)(
|
||||
"Uncleaned items:" SIZE_FORMAT " added: " SIZE_FORMAT " total:" SIZE_FORMAT,
|
||||
_uncleaned_items_count, ndead, total);
|
||||
|
@ -226,7 +226,7 @@ size_t StringTable::add_items_to_clean(size_t ndead) {
|
|||
}
|
||||
|
||||
void StringTable::item_removed() {
|
||||
Atomic::add((size_t)-1, &_items_count);
|
||||
Atomic::add(&_items_count, (size_t)-1);
|
||||
}
|
||||
|
||||
double StringTable::get_load_factor() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue