< prev index next >
src/hotspot/share/runtime/atomic.hpp
Print this page
rev 47321 : [mq]: Atomic_loadstore
rev 47322 : [mq]: Atomic_loadstore_v2
*** 62,72 ****
// these semantics reflect the strength of atomic operations that are
// provided on SPARC/X86. We assume that strength is necessary unless
// we can prove that a weaker form is sufficiently safe.
// Atomically store to a location
- // See comment above about using jlong atomics on 32-bit platforms
// The type T must be either a pointer type convertible to or equal
// to D, an integral/enum type equal to D, or a type equal to D that
// is primitive convertible using PrimitiveConversions.
template<typename T, typename D>
inline static void store(T store_value, volatile D* dest);
--- 62,71 ----
*** 78,88 ****
inline static void store_ptr(void* store_value, volatile void* dest) {
Atomic::store(store_value, reinterpret_cast<void* volatile*>(dest));
}
// Atomically load from a location
- // See comment above about using jlong atomics on 32-bit platforms
// The type T must be either a pointer type, an integral/enum type,
// or a type that is primitive convertible using PrimitiveConversions.
template<typename T>
inline static T load(const volatile T* dest);
--- 77,86 ----
< prev index next >