src/hotspot/share/gc/z/zOopClosures.inline.hpp
changeset 59252 623722a6aeb9
parent 55603 3868dde58ebb
equal deleted inserted replaced
59251:4cbfa5077d68 59252:623722a6aeb9
    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();