mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8234740: Harmonize parameter order in Atomic - cmpxchg
Reviewed-by: rehn, dholmes
This commit is contained in:
parent
3d426623bf
commit
0ad50c2b5c
144 changed files with 504 additions and 506 deletions
|
@ -2752,7 +2752,7 @@ static int check_pending_signals() {
|
|||
for (;;) {
|
||||
for (int i = 0; i < NSIG + 1; i++) {
|
||||
jint n = pending_signals[i];
|
||||
if (n > 0 && n == Atomic::cmpxchg(n - 1, &pending_signals[i], n)) {
|
||||
if (n > 0 && n == Atomic::cmpxchg(&pending_signals[i], n, n - 1)) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue