< prev index next >

src/share/vm/runtime/atomic.inline.hpp

Print this page
rev 7584 : reusability maximum

@@ -64,10 +64,11 @@
 
 // BSD
 #ifdef TARGET_OS_ARCH_bsd_x86
 # include "atomic_bsd_x86.inline.hpp"
 #endif
+
 #ifdef TARGET_OS_ARCH_bsd_zero
 # include "atomic_bsd_zero.inline.hpp"
 #endif
 
 // size_t casts...

@@ -85,14 +86,10 @@
 
 inline void Atomic::dec(volatile size_t* dest) {
   dec_ptr((volatile intptr_t*) dest);
 }
 
-#ifndef VM_HAS_SPECIALIZED_CMPXCHG_BYTE
-// See comment in atomic.cpp how to override.
-inline jbyte Atomic::cmpxchg(jbyte exchange_value, volatile jbyte *dest, jbyte comparand)
-{
-  return cmpxchg_general(exchange_value, dest, comparand);
+inline jbyte Atomic::cmpxchg(jbyte exchange_value, volatile jbyte* dest, jbyte compare_value) {
+  return AtomicSuper::cmpxchg(exchange_value, dest, compare_value);
 }
-#endif // VM_HAS_SPECIALIZED_CMPXCHG_BYTE
 
 #endif // SHARE_VM_RUNTIME_ATOMIC_INLINE_HPP
< prev index next >