< prev index next >

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

Print this page

        

*** 78,91 **** } template <DecoratorSet decorators, typename BarrierSetT> template <typename T> inline oop ModRefBarrierSet::AccessBarrier<decorators, BarrierSetT>:: ! oop_atomic_xchg_in_heap(oop new_value, T* addr) { BarrierSetT *bs = barrier_set_cast<BarrierSetT>(barrier_set()); bs->template write_ref_field_pre<decorators>(addr); ! oop result = Raw::oop_atomic_xchg(new_value, addr); bs->template write_ref_field_post<decorators>(addr, new_value); return result; } template <DecoratorSet decorators, typename BarrierSetT> --- 78,91 ---- } template <DecoratorSet decorators, typename BarrierSetT> template <typename T> inline oop ModRefBarrierSet::AccessBarrier<decorators, BarrierSetT>:: ! oop_atomic_xchg_in_heap(T* addr, oop new_value) { BarrierSetT *bs = barrier_set_cast<BarrierSetT>(barrier_set()); bs->template write_ref_field_pre<decorators>(addr); ! oop result = Raw::oop_atomic_xchg(addr, new_value); bs->template write_ref_field_post<decorators>(addr, new_value); return result; } template <DecoratorSet decorators, typename BarrierSetT>
< prev index next >