mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +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
|
@ -896,7 +896,7 @@ bool FailedSpeculation::add_failed_speculation(nmethod* nm, FailedSpeculation**
|
|||
FailedSpeculation** cursor = failed_speculations_address;
|
||||
do {
|
||||
if (*cursor == NULL) {
|
||||
FailedSpeculation* old_fs = Atomic::cmpxchg(fs, cursor, (FailedSpeculation*) NULL);
|
||||
FailedSpeculation* old_fs = Atomic::cmpxchg(cursor, (FailedSpeculation*) NULL, fs);
|
||||
if (old_fs == NULL) {
|
||||
// Successfully appended fs to end of the list
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue