src/hotspot/share/oops/methodData.cpp
changeset 59252 623722a6aeb9
parent 59247 56bf71d64d51
child 59292 95b1385dd476
--- a/src/hotspot/share/oops/methodData.cpp	Mon Nov 25 12:32:40 2019 +0100
+++ b/src/hotspot/share/oops/methodData.cpp	Mon Nov 25 12:33:15 2019 +0100
@@ -896,7 +896,7 @@
   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;