< prev index next >

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

Print this page

        

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