--- old/src/hotspot/share/prims/jvmtiRawMonitor.cpp 2017-10-13 18:28:00.044551984 -0400 +++ new/src/hotspot/share/prims/jvmtiRawMonitor.cpp 2017-10-13 18:27:59.670858686 -0400 @@ -127,7 +127,7 @@ int JvmtiRawMonitor::SimpleEnter (Thread * Self) { for (;;) { - if (Atomic::cmpxchg_ptr (Self, &_owner, NULL) == NULL) { + if (Atomic::cmpxchg(Self, &_owner, (void*)NULL) == NULL) { return OS_OK ; } @@ -139,7 +139,7 @@ Node._next = _EntryList ; _EntryList = &Node ; OrderAccess::fence() ; - if (_owner == NULL && Atomic::cmpxchg_ptr (Self, &_owner, NULL) == NULL) { + if (_owner == NULL && Atomic::cmpxchg(Self, &_owner, (void*)NULL) == NULL) { _EntryList = Node._next ; RawMonitor_lock->unlock() ; return OS_OK ; @@ -153,7 +153,7 @@ int JvmtiRawMonitor::SimpleExit (Thread * Self) { guarantee (_owner == Self, "invariant") ; - OrderAccess::release_store_ptr (&_owner, NULL) ; + OrderAccess::release_store(&_owner, (void*)NULL) ; OrderAccess::fence() ; if (_EntryList == NULL) return OS_OK ; ObjectWaiter * w ; @@ -277,10 +277,10 @@ jt->SR_lock()->lock_without_safepoint_check(); } // guarded by SR_lock to avoid racing with new external suspend requests. - Contended = Atomic::cmpxchg_ptr (THREAD, &_owner, NULL) ; + Contended = Atomic::cmpxchg(THREAD, &_owner, (void*)NULL); jt->SR_lock()->unlock(); } else { - Contended = Atomic::cmpxchg_ptr (THREAD, &_owner, NULL) ; + Contended = Atomic::cmpxchg(THREAD, &_owner, (void*)NULL); } if (Contended == THREAD) {