< prev index next >

src/os_cpu/linux_zero/vm/atomic_linux_zero.hpp

Print this page
rev 13452 : imported patch Atomic_cmpxchg
rev 13453 : imported patch Atomic_add
rev 13454 : [mq]: Atomic_add_v2

@@ -199,10 +199,13 @@
   STATIC_CAST(8 == sizeof(D));
 
   return __sync_add_and_fetch(dest, add_value);
 }
 
+template<>
+struct Atomic::PlatformAdd<2>: Atomic::AddShortUsingInt {};
+
 inline void Atomic::inc(volatile jint* dest) {
   add(1, dest);
 }
 
 inline void Atomic::inc_ptr(volatile intptr_t* dest) {
< prev index next >