--- old/src/hotspot/os_cpu/bsd_x86/atomic_bsd_x86.hpp 2017-12-06 12:37:31.489941477 -0500 +++ new/src/hotspot/os_cpu/bsd_x86/atomic_bsd_x86.hpp 2017-12-06 12:37:31.073904237 -0500 @@ -132,8 +132,8 @@ extern "C" { // defined in bsd_x86.s - jlong _Atomic_cmpxchg_long(jlong, volatile jlong*, jlong, bool); - void _Atomic_move_long(const volatile jlong* src, volatile jlong* dst); + int64_t _Atomic_cmpxchg_long(int64_t, volatile int64_t*, int64_t, bool); + void _Atomic_move_long(const volatile int64_t* src, volatile int64_t* dst); } template<> @@ -143,15 +143,15 @@ T compare_value, cmpxchg_memory_order order) const { STATIC_ASSERT(8 == sizeof(T)); - return cmpxchg_using_helper(_Atomic_cmpxchg_long, exchange_value, dest, compare_value); + return cmpxchg_using_helper(_Atomic_cmpxchg_long, exchange_value, dest, compare_value); } template<> template inline T Atomic::PlatformLoad<8>::operator()(T const volatile* src) const { STATIC_ASSERT(8 == sizeof(T)); - volatile jlong dest; - _Atomic_move_long(reinterpret_cast(src), reinterpret_cast(&dest)); + volatile int64_t dest; + _Atomic_move_long(reinterpret_cast(src), reinterpret_cast(&dest)); return PrimitiveConversions::cast(dest); } @@ -160,7 +160,7 @@ inline void Atomic::PlatformStore<8>::operator()(T store_value, T volatile* dest) const { STATIC_ASSERT(8 == sizeof(T)); - _Atomic_move_long(reinterpret_cast(&store_value), reinterpret_cast(dest)); + _Atomic_move_long(reinterpret_cast(&store_value), reinterpret_cast(dest)); } #endif // AMD64