mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +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
|
@ -59,7 +59,7 @@ class GlobalCounter::CounterThreadCheck : public ThreadClosure {
|
|||
void GlobalCounter::write_synchronize() {
|
||||
assert((*Thread::current()->get_rcu_counter() & COUNTER_ACTIVE) == 0x0, "must be outside a critcal section");
|
||||
// Atomic::add must provide fence since we have storeload dependency.
|
||||
uintx gbl_cnt = Atomic::add(COUNTER_INCREMENT, &_global_counter._counter);
|
||||
uintx gbl_cnt = Atomic::add(&_global_counter._counter, COUNTER_INCREMENT);
|
||||
|
||||
// Do all RCU threads.
|
||||
CounterThreadCheck ctc(gbl_cnt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue