--- 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;