equal
deleted
inserted
replaced
94 // The destination could have been modified/reused, in which case |
94 // The destination could have been modified/reused, in which case |
95 // we don't want to clear it. However, no one could write the same |
95 // we don't want to clear it. However, no one could write the same |
96 // oop here again (the object would be strongly live and we would |
96 // oop here again (the object would be strongly live and we would |
97 // not consider clearing such oops), so therefore we don't have an |
97 // not consider clearing such oops), so therefore we don't have an |
98 // ABA problem here. |
98 // ABA problem here. |
99 Atomic::cmpxchg(oop(NULL), p, obj); |
99 Atomic::cmpxchg(p, obj, oop(NULL)); |
100 } |
100 } |
101 } |
101 } |
102 |
102 |
103 inline void ZPhantomCleanOopClosure::do_oop(narrowOop* p) { |
103 inline void ZPhantomCleanOopClosure::do_oop(narrowOop* p) { |
104 ShouldNotReachHere(); |
104 ShouldNotReachHere(); |