< prev index next >

src/hotspot/share/oops/methodData.cpp

Print this page

        

@@ -894,11 +894,11 @@
   guarantee_failed_speculations_alive(nm, failed_speculations_address);
 
   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;
       }
       cursor = old_fs->next_adr();
< prev index next >