< prev index next > src/hotspot/share/jfr/leakprofiler/chains/dfsClosure.cpp
Print this page
* questions.
*
*/
#include "precompiled.hpp"
- #include "jfr/leakprofiler/chains/bitset.inline.hpp"
#include "jfr/leakprofiler/chains/dfsClosure.hpp"
#include "jfr/leakprofiler/chains/edge.hpp"
#include "jfr/leakprofiler/chains/edgeStore.hpp"
#include "jfr/leakprofiler/chains/rootSetClosure.hpp"
#include "jfr/leakprofiler/utilities/granularTimer.hpp"
#include "jfr/leakprofiler/utilities/rootType.hpp"
#include "jfr/leakprofiler/utilities/unifiedOopRef.inline.hpp"
#include "memory/iterator.inline.hpp"
* questions.
*
*/
#include "precompiled.hpp"
#include "jfr/leakprofiler/chains/dfsClosure.hpp"
#include "jfr/leakprofiler/chains/edge.hpp"
#include "jfr/leakprofiler/chains/edgeStore.hpp"
+ #include "jfr/leakprofiler/chains/jfrbitset.hpp"
#include "jfr/leakprofiler/chains/rootSetClosure.hpp"
#include "jfr/leakprofiler/utilities/granularTimer.hpp"
#include "jfr/leakprofiler/utilities/rootType.hpp"
#include "jfr/leakprofiler/utilities/unifiedOopRef.inline.hpp"
#include "memory/iterator.inline.hpp"
#include "utilities/align.hpp"
UnifiedOopRef DFSClosure::_reference_stack[max_dfs_depth];
void DFSClosure::find_leaks_from_edge(EdgeStore* edge_store,
! BitSet* mark_bits,
const Edge* start_edge) {
assert(edge_store != NULL, "invariant");
assert(mark_bits != NULL," invariant");
assert(start_edge != NULL, "invariant");
#include "utilities/align.hpp"
UnifiedOopRef DFSClosure::_reference_stack[max_dfs_depth];
void DFSClosure::find_leaks_from_edge(EdgeStore* edge_store,
! JFRBitSet* mark_bits,
const Edge* start_edge) {
assert(edge_store != NULL, "invariant");
assert(mark_bits != NULL," invariant");
assert(start_edge != NULL, "invariant");
DFSClosure dfs(edge_store, mark_bits, start_edge);
start_edge->pointee()->oop_iterate(&dfs);
}
void DFSClosure::find_leaks_from_root_set(EdgeStore* edge_store,
! BitSet* mark_bits) {
assert(edge_store != NULL, "invariant");
assert(mark_bits != NULL, "invariant");
// Mark root set, to avoid going sideways
DFSClosure dfs(edge_store, mark_bits, NULL);
DFSClosure dfs(edge_store, mark_bits, start_edge);
start_edge->pointee()->oop_iterate(&dfs);
}
void DFSClosure::find_leaks_from_root_set(EdgeStore* edge_store,
! JFRBitSet* mark_bits) {
assert(edge_store != NULL, "invariant");
assert(mark_bits != NULL, "invariant");
// Mark root set, to avoid going sideways
DFSClosure dfs(edge_store, mark_bits, NULL);
dfs._max_depth = max_dfs_depth;
dfs._ignore_root_set = true;
rs.process();
}
! DFSClosure::DFSClosure(EdgeStore* edge_store, BitSet* mark_bits, const Edge* start_edge)
:_edge_store(edge_store), _mark_bits(mark_bits), _start_edge(start_edge),
_max_depth(max_dfs_depth), _depth(0), _ignore_root_set(false) {
}
void DFSClosure::closure_impl(UnifiedOopRef reference, const oop pointee) {
dfs._max_depth = max_dfs_depth;
dfs._ignore_root_set = true;
rs.process();
}
! DFSClosure::DFSClosure(EdgeStore* edge_store, JFRBitSet* mark_bits, const Edge* start_edge)
:_edge_store(edge_store), _mark_bits(mark_bits), _start_edge(start_edge),
_max_depth(max_dfs_depth), _depth(0), _ignore_root_set(false) {
}
void DFSClosure::closure_impl(UnifiedOopRef reference, const oop pointee) {
< prev index next >