--- old/src/hotspot/share/services/mallocSiteTable.cpp 2017-10-12 12:07:05.921154747 -0400 +++ new/src/hotspot/share/services/mallocSiteTable.cpp 2017-10-12 12:07:05.345432913 -0400 @@ -147,7 +147,7 @@ if (entry == NULL) return NULL; // swap in the head - if (Atomic::cmpxchg_if_null(entry, &_table[index])) { + if (Atomic::cmpxchg(entry, &_table[index], (MallocSiteHashtableEntry*)NULL) == NULL) { return entry->data(); } @@ -259,5 +259,5 @@ } bool MallocSiteHashtableEntry::atomic_insert(const MallocSiteHashtableEntry* entry) { - return Atomic::cmpxchg_if_null(entry, (const MallocSiteHashtableEntry**)&_next); + return Atomic::cmpxchg(entry, (const MallocSiteHashtableEntry**)&_next, (const MallocSiteHashtableEntry*)NULL) == NULL; }