< prev index next >
src/hotspot/os_cpu/linux_ppc/atomic_linux_ppc.hpp
Print this page
rev 47321 : [mq]: Atomic_loadstore
*** 30,55 ****
#error "Atomic currently only implemented for PPC64"
#endif
// Implementation of class atomic
- inline void Atomic::store (jbyte store_value, jbyte* dest) { *dest = store_value; }
- inline void Atomic::store (jshort store_value, jshort* dest) { *dest = store_value; }
- inline void Atomic::store (jint store_value, jint* dest) { *dest = store_value; }
- inline void Atomic::store (jlong store_value, jlong* dest) { *dest = store_value; }
- inline void Atomic::store_ptr(intptr_t store_value, intptr_t* dest) { *dest = store_value; }
- inline void Atomic::store_ptr(void* store_value, void* dest) { *(void**)dest = store_value; }
-
- inline void Atomic::store (jbyte store_value, volatile jbyte* dest) { *dest = store_value; }
- inline void Atomic::store (jshort store_value, volatile jshort* dest) { *dest = store_value; }
- inline void Atomic::store (jint store_value, volatile jint* dest) { *dest = store_value; }
- inline void Atomic::store (jlong store_value, volatile jlong* dest) { *dest = store_value; }
- inline void Atomic::store_ptr(intptr_t store_value, volatile intptr_t* dest) { *dest = store_value; }
- inline void Atomic::store_ptr(void* store_value, volatile void* dest) { *(void* volatile *)dest = store_value; }
-
- inline jlong Atomic::load(const volatile jlong* src) { return *src; }
-
//
// machine barrier instructions:
//
// - sync two-way memory barrier, aka fence
// - lwsync orders Store|Store,
--- 30,39 ----
< prev index next >