< prev index next >
src/hotspot/share/gc/shared/barrierSet.hpp
Print this page
rev 48688 : Access barriers for arraycopy
*** 240,251 ****
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, size_t src_pos, size_t dst_pos, size_t length) {
! return Raw::arraycopy(src_obj, dst_obj, src_pos, dst_pos, 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.
--- 240,251 ----
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, 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 >