< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.hpp

Print this page

140     // Heap oop accesses. These accessors get resolved when
141     // IN_HEAP is set (e.g. when using the HeapAccess API), it is
142     // an oop_* overload, and the barrier strength is AS_NORMAL.
143     template <typename T>
144     static oop oop_load_in_heap(T* addr);
145     static oop oop_load_in_heap_at(oop base, ptrdiff_t offset);
146 
147     template <typename T>
148     static void oop_store_in_heap(T* addr, oop value);
149     static void oop_store_in_heap_at(oop base, ptrdiff_t offset, oop value);
150 
151     template <typename T>
152     static oop oop_atomic_cmpxchg_in_heap(T* addr, oop compare_value, oop new_value);
153     static oop oop_atomic_cmpxchg_in_heap_at(oop base, ptrdiff_t offset, oop compare_value, oop new_value);
154 
155     template <typename T>
156     static oop oop_atomic_xchg_in_heap(T* addr, oop new_value);
157     static oop oop_atomic_xchg_in_heap_at(oop base, ptrdiff_t offset, oop new_value);
158 
159     template <typename T>
160     static bool oop_arraycopy_in_heap(arrayOop src_obj, size_t src_offset_in_bytes, T* src_raw,
161                                       arrayOop dst_obj, size_t dst_offset_in_bytes, T* dst_raw,
162                                       size_t length);
163 
164     // Clone barrier support
165     static void clone_in_heap(oop src, oop dst, size_t size);
166 
167     // Support for concurrent roots evacuation, updating and weak roots clearing
168     template <typename T>
169     static oop oop_load_not_in_heap(T* addr);
170 
171     // Support for concurrent roots marking
172     template <typename T>
173     static void oop_store_not_in_heap(T* addr, oop value);
174 
175     template <typename T>
176     static oop oop_atomic_cmpxchg_not_in_heap(T* addr, oop compare_value, oop new_value);
177 
178     template <typename T>
179     static oop oop_atomic_xchg_not_in_heap(T* addr, oop new_value);
180   };

140     // Heap oop accesses. These accessors get resolved when
141     // IN_HEAP is set (e.g. when using the HeapAccess API), it is
142     // an oop_* overload, and the barrier strength is AS_NORMAL.
143     template <typename T>
144     static oop oop_load_in_heap(T* addr);
145     static oop oop_load_in_heap_at(oop base, ptrdiff_t offset);
146 
147     template <typename T>
148     static void oop_store_in_heap(T* addr, oop value);
149     static void oop_store_in_heap_at(oop base, ptrdiff_t offset, oop value);
150 
151     template <typename T>
152     static oop oop_atomic_cmpxchg_in_heap(T* addr, oop compare_value, oop new_value);
153     static oop oop_atomic_cmpxchg_in_heap_at(oop base, ptrdiff_t offset, oop compare_value, oop new_value);
154 
155     template <typename T>
156     static oop oop_atomic_xchg_in_heap(T* addr, oop new_value);
157     static oop oop_atomic_xchg_in_heap_at(oop base, ptrdiff_t offset, oop new_value);
158 
159     template <typename T>
160     static void oop_arraycopy_in_heap(arrayOop src_obj, size_t src_offset_in_bytes, T* src_raw,
161                                       arrayOop dst_obj, size_t dst_offset_in_bytes, T* dst_raw,
162                                       size_t length);
163 
164     // Clone barrier support
165     static void clone_in_heap(oop src, oop dst, size_t size);
166 
167     // Support for concurrent roots evacuation, updating and weak roots clearing
168     template <typename T>
169     static oop oop_load_not_in_heap(T* addr);
170 
171     // Support for concurrent roots marking
172     template <typename T>
173     static void oop_store_not_in_heap(T* addr, oop value);
174 
175     template <typename T>
176     static oop oop_atomic_cmpxchg_not_in_heap(T* addr, oop compare_value, oop new_value);
177 
178     template <typename T>
179     static oop oop_atomic_xchg_not_in_heap(T* addr, oop new_value);
180   };
< prev index next >