--- old/src/hotspot/share/oops/methodData.cpp 2019-11-21 11:55:31.965320912 +0100 +++ new/src/hotspot/share/oops/methodData.cpp 2019-11-21 11:55:31.713316652 +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;