< prev index next >

src/hotspot/share/gc/shared/barrierSet.hpp

Print this page
rev 50331 : 8198285: More consistent Access API for arraycopy

*** 211,222 **** static T atomic_xchg_in_heap_at(T new_value, oop base, ptrdiff_t offset) { return Raw::atomic_xchg_at(new_value, base, offset); } template <typename T> ! static void arraycopy_in_heap(arrayOop src_obj, arrayOop dst_obj, T* src, T* dst, size_t length) { ! Raw::arraycopy(src_obj, dst_obj, src, dst, length); } // Heap oop accesses. These accessors get resolved when // IN_HEAP is set (e.g. when using the HeapAccess API), it is // an oop_* overload, and the barrier strength is AS_NORMAL. --- 211,222 ---- static T atomic_xchg_in_heap_at(T new_value, oop base, ptrdiff_t offset) { return Raw::atomic_xchg_at(new_value, base, offset); } template <typename T> ! static void arraycopy_in_heap(arrayOop src_obj, size_t src_offset_in_bytes, const T* src_raw, arrayOop dst_obj, size_t dst_offset_in_bytes, T* dst_raw, size_t length) { ! Raw::arraycopy(src_obj, src_offset_in_bytes, src_raw, dst_obj, dst_offset_in_bytes, dst_raw, length); } // Heap oop accesses. These accessors get resolved when // IN_HEAP is set (e.g. when using the HeapAccess API), it is // an oop_* overload, and the barrier strength is AS_NORMAL.
*** 255,266 **** static oop oop_atomic_xchg_in_heap_at(oop new_value, oop base, ptrdiff_t offset) { return Raw::oop_atomic_xchg_at(new_value, base, offset); } template <typename T> ! static bool oop_arraycopy_in_heap(arrayOop src_obj, arrayOop dst_obj, T* src, T* dst, size_t length) { ! return Raw::oop_arraycopy(src_obj, dst_obj, src, dst, length); } // Off-heap oop accesses. These accessors get resolved when // IN_HEAP is not set (e.g. when using the RootAccess API), it is // an oop* overload, and the barrier strength is AS_NORMAL. --- 255,266 ---- static oop oop_atomic_xchg_in_heap_at(oop new_value, oop base, ptrdiff_t offset) { return Raw::oop_atomic_xchg_at(new_value, base, offset); } template <typename T> ! static bool oop_arraycopy_in_heap(arrayOop src_obj, size_t src_offset_in_bytes, const T* src_raw, arrayOop dst_obj, size_t dst_offset_in_bytes, T* dst_raw, size_t length) { ! return Raw::oop_arraycopy(src_obj, src_offset_in_bytes, src_raw, dst_obj, dst_offset_in_bytes, dst_raw, length); } // Off-heap oop accesses. These accessors get resolved when // IN_HEAP is not set (e.g. when using the RootAccess API), it is // an oop* overload, and the barrier strength is AS_NORMAL.
< prev index next >