< prev index next >

src/hotspot/share/utilities/lockFreeStack.hpp

Print this page

        

*** 168,177 **** // Set the entry following value to new_next in the list used by the // specialized LockFreeStack class. Not thread-safe; in particular, // if value is in an instance of this specialization of LockFreeStack, // there must be no concurrent push or pop operations on that stack. static void set_next(T& value, T* new_next) { ! Atomic::store(new_next, next_ptr(value)); } }; #endif // SHARE_UTILITIES_LOCKFREESTACK_HPP --- 168,177 ---- // Set the entry following value to new_next in the list used by the // specialized LockFreeStack class. Not thread-safe; in particular, // if value is in an instance of this specialization of LockFreeStack, // there must be no concurrent push or pop operations on that stack. static void set_next(T& value, T* new_next) { ! Atomic::store(next_ptr(value), new_next); } }; #endif // SHARE_UTILITIES_LOCKFREESTACK_HPP
< prev index next >