< prev index next >
src/os_cpu/bsd_x86/vm/atomic_bsd_x86.hpp
Print this page
rev 13452 : imported patch Atomic_cmpxchg
rev 13453 : imported patch Atomic_add
rev 13454 : [mq]: Atomic_add_v2
*** 59,68 ****
--- 59,71 ----
: "0" (add_value), "r" (dest)
: "cc", "memory");
return old_value;
}
+ template<>
+ struct Atomic::PlatformAdd<2>: Atomic::AddShortUsingInt {};
+
inline void Atomic::inc (volatile jint* dest) {
__asm__ volatile ( "lock addl $1,(%0)" :
: "r" (dest) : "cc", "memory");
}
< prev index next >