changeset 59251 | 4cbfa5077d68 |
parent 59248 | e92153ed8bdc |
child 59252 | 623722a6aeb9 |
--- a/src/hotspot/share/utilities/lockFreeStack.hpp Mon Nov 25 12:32:07 2019 +0100 +++ b/src/hotspot/share/utilities/lockFreeStack.hpp Mon Nov 25 12:32:40 2019 +0100 @@ -103,7 +103,7 @@ // list of elements. Acts as a full memory barrier. // postcondition: empty() T* pop_all() { - return Atomic::xchg((T*)NULL, &_top); + return Atomic::xchg(&_top, (T*)NULL); } // Atomically adds value to the top of this stack. Acts as a full