< prev index next >

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

Print this page
*** 80,14 ***
      static oop oop_atomic_cmpxchg_in_heap(T* addr, oop compare_value, oop new_value);
      template <typename T>
      static oop oop_atomic_xchg_in_heap(T* addr, oop new_value);
  
      template <typename T>
!     static bool oop_arraycopy_in_heap(arrayOop src_obj, size_t src_offset_in_bytes, T* src_raw,
                                        arrayOop dst_obj, size_t dst_offset_in_bytes, T* dst_raw,
                                        size_t length);
! 
      static void clone_in_heap(oop src, oop dst, size_t size);
  
      static void oop_store_in_heap_at(oop base, ptrdiff_t offset, oop value) {
        oop_store_in_heap(AccessInternal::oop_field_addr<decorators>(base, offset), value);
      }
--- 80,18 ---
      static oop oop_atomic_cmpxchg_in_heap(T* addr, oop compare_value, oop new_value);
      template <typename T>
      static oop oop_atomic_xchg_in_heap(T* addr, oop new_value);
  
      template <typename T>
!     static void oop_arraycopy_in_heap(arrayOop src_obj, size_t src_offset_in_bytes, T* src_raw,
                                        arrayOop dst_obj, size_t dst_offset_in_bytes, T* dst_raw,
                                        size_t length);
!   private:
+     // Failing checkcast or check null during copy, still needs barrier
+     template <typename T>
+     static inline void oop_arraycopy_partial_barrier(BarrierSetT *bs, T* dst_raw, T* p);
+   public:
      static void clone_in_heap(oop src, oop dst, size_t size);
  
      static void oop_store_in_heap_at(oop base, ptrdiff_t offset, oop value) {
        oop_store_in_heap(AccessInternal::oop_field_addr<decorators>(base, offset), value);
      }

*** 97,10 ***
--- 101,12 ---
      }
  
      static oop oop_atomic_cmpxchg_in_heap_at(oop base, ptrdiff_t offset, oop compare_value, oop new_value) {
        return oop_atomic_cmpxchg_in_heap(AccessInternal::oop_field_addr<decorators>(base, offset), compare_value, new_value);
      }
+ 
+     static void value_copy_in_heap(void* src, void* dst, InlineKlass* md);
    };
  };
  
  template<>
  struct BarrierSet::GetName<ModRefBarrierSet> {
< prev index next >