src/hotspot/share/utilities/lockFreeStack.hpp
changeset 59248 e92153ed8bdc
parent 53404 9ff1e6cacac3
child 59251 4cbfa5077d68
equal deleted inserted replaced
59247:56bf71d64d51 59248:e92153ed8bdc
   168   // Set the entry following value to new_next in the list used by the
   168   // Set the entry following value to new_next in the list used by the
   169   // specialized LockFreeStack class.  Not thread-safe; in particular,
   169   // specialized LockFreeStack class.  Not thread-safe; in particular,
   170   // if value is in an instance of this specialization of LockFreeStack,
   170   // if value is in an instance of this specialization of LockFreeStack,
   171   // there must be no concurrent push or pop operations on that stack.
   171   // there must be no concurrent push or pop operations on that stack.
   172   static void set_next(T& value, T* new_next) {
   172   static void set_next(T& value, T* new_next) {
   173     Atomic::store(new_next, next_ptr(value));
   173     Atomic::store(next_ptr(value), new_next);
   174   }
   174   }
   175 };
   175 };
   176 
   176 
   177 #endif // SHARE_UTILITIES_LOCKFREESTACK_HPP
   177 #endif // SHARE_UTILITIES_LOCKFREESTACK_HPP