< prev index next >

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

Print this page
rev 47409 : [mq]: review_comments_erik_and_david
rev 47400 : [mq]: cmpxchg_ptr
rev 47216 : 8187443: Forest Consolidation: Move files to unified layout
Reviewed-by: darcy, ihse

@@ -257,13 +257,11 @@
   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((intptr_t)new_age._data,
-                                  (volatile intptr_t *)&_data,
-                                  (intptr_t)old_age._data);
+  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 >