--- old/src/hotspot/share/gc/g1/g1HotCardCache.cpp 2017-10-11 09:33:09.621325899 -0400 +++ new/src/hotspot/share/gc/g1/g1HotCardCache.cpp 2017-10-11 09:33:09.136994146 -0400 @@ -74,9 +74,9 @@ // card_ptr in favor of the other option, which would be starting over. This // should be OK since card_ptr will likely be the older card already when/if // this ever happens. - jbyte* previous_ptr = (jbyte*)Atomic::cmpxchg_ptr(card_ptr, - &_hot_cache[masked_index], - current_ptr); + jbyte* previous_ptr = (jbyte*)Atomic::cmpxchg(card_ptr, + &_hot_cache[masked_index], + current_ptr); return (previous_ptr == current_ptr) ? previous_ptr : card_ptr; }