equal
deleted
inserted
replaced
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(); |