src/hotspot/share/jfr/leakprofiler/chains/edgeUtils.cpp
branchJEP-349-branch
changeset 58154 060d9d139109
parent 57777 90ead0febf56
child 58679 9c3209ff7550
child 59056 15936b142f86
equal deleted inserted replaced
58101:84b0544833c4 58154:060d9d139109
    33 #include "oops/objArrayOop.inline.hpp"
    33 #include "oops/objArrayOop.inline.hpp"
    34 #include "oops/oopsHierarchy.hpp"
    34 #include "oops/oopsHierarchy.hpp"
    35 #include "runtime/handles.inline.hpp"
    35 #include "runtime/handles.inline.hpp"
    36 
    36 
    37 bool EdgeUtils::is_leak_edge(const Edge& edge) {
    37 bool EdgeUtils::is_leak_edge(const Edge& edge) {
    38   return (const Edge*)edge.pointee()->mark() == &edge;
    38   return (const Edge*)edge.pointee()->mark().to_pointer() == &edge;
    39 }
    39 }
    40 
    40 
    41 static int field_offset(const StoredEdge& edge) {
    41 static int field_offset(const StoredEdge& edge) {
    42   assert(!edge.is_root(), "invariant");
    42   assert(!edge.is_root(), "invariant");
    43   const oop ref_owner = edge.reference_owner();
    43   const oop ref_owner = edge.reference_owner();