< prev index next >
src/hotspot/share/gc/z/zOopClosures.inline.hpp
Print this page
@@ -94,11 +94,11 @@
// The destination could have been modified/reused, in which case
// we don't want to clear it. However, no one could write the same
// oop here again (the object would be strongly live and we would
// not consider clearing such oops), so therefore we don't have an
// ABA problem here.
- Atomic::cmpxchg(oop(NULL), p, obj);
+ Atomic::cmpxchg(p, obj, oop(NULL));
}
}
inline void ZPhantomCleanOopClosure::do_oop(narrowOop* p) {
ShouldNotReachHere();
< prev index next >