--- old/src/hotspot/share/jfr/leakprofiler/chains/objectSampleMarker.hpp 2019-08-13 12:39:49.828222107 +0200 +++ new/src/hotspot/share/jfr/leakprofiler/chains/objectSampleMarker.hpp 2019-08-13 12:39:49.520216765 +0200 @@ -45,7 +45,7 @@ const markWord mark_word) : _obj(obj), _mark_word(mark_word) {} public: - ObjectSampleMarkWord() : _obj(NULL), _mark_word(0) {} + ObjectSampleMarkWord() : _obj(NULL), _mark_word(markWord::zero) {} }; GrowableArray* _store; @@ -72,9 +72,9 @@ // This is an "impossible" state during a safepoint, // hence we will use it to quickly identify sample objects // during the reachability search from gc roots. - assert(0 == markWord::INFLATING().value(), "invariant"); + assert(NULL == markWord::INFLATING().to_pointer(), "invariant"); obj->set_mark(markWord::INFLATING()); - assert(0 == obj->mark().value(), "invariant"); + assert(NULL == obj->mark().to_pointer(), "invariant"); } };