< prev index next >

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

Print this page
rev 49217 : 8198445: Access API for primitive/native arraycopy
Reviewed-by: pliden, eosterlund, dholmes

*** 187,198 **** 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 bool arraycopy_in_heap(arrayOop src_obj, arrayOop dst_obj, T* src, T* dst, size_t length) { ! return 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. --- 187,198 ---- 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.
< prev index next >