< prev index next >
src/hotspot/share/gc/shared/taskqueue.inline.hpp
Print this page
*** 257,269 ****
return false;
}
template <unsigned int N, MEMFLAGS F>
inline typename TaskQueueSuper<N, F>::Age TaskQueueSuper<N, F>::Age::cmpxchg(const Age new_age, const Age old_age) volatile {
! return (size_t) Atomic::cmpxchg_ptr((intptr_t)new_age._data,
! (volatile intptr_t *)&_data,
! (intptr_t)old_age._data);
}
template<class E, MEMFLAGS F, unsigned int N>
template<class Fn>
inline void GenericTaskQueue<E, F, N>::iterate(Fn fn) {
--- 257,267 ----
return false;
}
template <unsigned int N, MEMFLAGS F>
inline typename TaskQueueSuper<N, F>::Age TaskQueueSuper<N, F>::Age::cmpxchg(const Age new_age, const Age old_age) volatile {
! return (size_t) Atomic::cmpxchg(new_age._data, &_data, old_age._data);
}
template<class E, MEMFLAGS F, unsigned int N>
template<class Fn>
inline void GenericTaskQueue<E, F, N>::iterate(Fn fn) {
< prev index next >