< prev index next > src/hotspot/share/jfr/leakprofiler/chains/objectSampleMarker.hpp
Print this page
// save the original markWord
_store->push(ObjectSampleMarkWord(obj, obj->mark()));
// now we will set the mark word to "marked" in order to quickly
// identify sample objects during the reachability search from gc roots.
assert(!obj->mark().is_marked(), "should only mark an object once");
! obj->set_mark(markWord::prototype().set_marked());
assert(obj->mark().is_marked(), "invariant");
}
};
#endif // SHARE_JFR_LEAKPROFILER_CHAINS_OBJECTSAMPLEMARKER_HPP
// save the original markWord
_store->push(ObjectSampleMarkWord(obj, obj->mark()));
// now we will set the mark word to "marked" in order to quickly
// identify sample objects during the reachability search from gc roots.
assert(!obj->mark().is_marked(), "should only mark an object once");
! obj->set_mark(obj->prototype_mark().set_marked());
assert(obj->mark().is_marked(), "invariant");
}
};
#endif // SHARE_JFR_LEAKPROFILER_CHAINS_OBJECTSAMPLEMARKER_HPP
< prev index next >