src/hotspot/share/gc/shared/taskqueue.inline.hpp
changeset 59252 623722a6aeb9
parent 59247 56bf71d64d51
equal deleted inserted replaced
59251:4cbfa5077d68 59252:623722a6aeb9
   319   return false;
   319   return false;
   320 }
   320 }
   321 
   321 
   322 template <unsigned int N, MEMFLAGS F>
   322 template <unsigned int N, MEMFLAGS F>
   323 inline typename TaskQueueSuper<N, F>::Age TaskQueueSuper<N, F>::Age::cmpxchg(const Age new_age, const Age old_age) volatile {
   323 inline typename TaskQueueSuper<N, F>::Age TaskQueueSuper<N, F>::Age::cmpxchg(const Age new_age, const Age old_age) volatile {
   324   return Atomic::cmpxchg(new_age._data, &_data, old_age._data);
   324   return Atomic::cmpxchg(&_data, old_age._data, new_age._data);
   325 }
   325 }
   326 
   326 
   327 template<class E, MEMFLAGS F, unsigned int N>
   327 template<class E, MEMFLAGS F, unsigned int N>
   328 template<class Fn>
   328 template<class Fn>
   329 inline void GenericTaskQueue<E, F, N>::iterate(Fn fn) {
   329 inline void GenericTaskQueue<E, F, N>::iterate(Fn fn) {