src/hotspot/share/memory/iterator.inline.hpp
changeset 54375 a5ce9300462f
parent 53244 9807daeb47c4
child 54786 ebf733a324d4
equal deleted inserted replaced
54374:22eb1f7416f1 54375:a5ce9300462f
    54 void OopIterateClosure::verify(T* p) {
    54 void OopIterateClosure::verify(T* p) {
    55   if (should_verify_oops()) {
    55   if (should_verify_oops()) {
    56     T heap_oop = RawAccess<>::oop_load(p);
    56     T heap_oop = RawAccess<>::oop_load(p);
    57     if (!CompressedOops::is_null(heap_oop)) {
    57     if (!CompressedOops::is_null(heap_oop)) {
    58       oop o = CompressedOops::decode_not_null(heap_oop);
    58       oop o = CompressedOops::decode_not_null(heap_oop);
    59       assert(Universe::heap()->is_in_closed_subset(o),
    59       assert(Universe::heap()->is_in(o),
    60              "should be in closed *p " PTR_FORMAT " " PTR_FORMAT, p2i(p), p2i(o));
    60              "should be in closed *p " PTR_FORMAT " " PTR_FORMAT, p2i(p), p2i(o));
    61     }
    61     }
    62   }
    62   }
    63 }
    63 }
    64 #endif
    64 #endif