< prev index next >

src/hotspot/share/jfr/leakprofiler/chains/dfsClosure.cpp

Print this page




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "jfr/leakprofiler/chains/dfsClosure.hpp"
  27 #include "jfr/leakprofiler/chains/edge.hpp"
  28 #include "jfr/leakprofiler/chains/edgeStore.hpp"
  29 #include "jfr/leakprofiler/utilities/granularTimer.hpp"
  30 #include "jfr/leakprofiler/chains/bitset.hpp"
  31 #include "jfr/leakprofiler/utilities/unifiedOop.hpp"
  32 #include "jfr/leakprofiler/utilities/rootType.hpp"
  33 #include "jfr/leakprofiler/chains/rootSetClosure.hpp"

  34 #include "memory/resourceArea.hpp"
  35 #include "oops/access.inline.hpp"
  36 #include "oops/oop.inline.hpp"
  37 #include "utilities/align.hpp"
  38 
  39 // max dfs depth should not exceed size of stack
  40 static const size_t max_dfs_depth = 5000;
  41 
  42 EdgeStore* DFSClosure::_edge_store = NULL;
  43 BitSet* DFSClosure::_mark_bits = NULL;
  44 const Edge* DFSClosure::_start_edge = NULL;
  45 size_t DFSClosure::_max_depth = max_dfs_depth;
  46 bool DFSClosure::_ignore_root_set = false;
  47 
  48 DFSClosure::DFSClosure() :
  49   _parent(NULL),
  50   _reference(NULL),
  51   _depth(0) {
  52 }
  53 




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "jfr/leakprofiler/chains/dfsClosure.hpp"
  27 #include "jfr/leakprofiler/chains/edge.hpp"
  28 #include "jfr/leakprofiler/chains/edgeStore.hpp"
  29 #include "jfr/leakprofiler/utilities/granularTimer.hpp"
  30 #include "jfr/leakprofiler/chains/bitset.hpp"
  31 #include "jfr/leakprofiler/utilities/unifiedOop.hpp"
  32 #include "jfr/leakprofiler/utilities/rootType.hpp"
  33 #include "jfr/leakprofiler/chains/rootSetClosure.hpp"
  34 #include "memory/iterator.inline.hpp"
  35 #include "memory/resourceArea.hpp"
  36 #include "oops/access.inline.hpp"
  37 #include "oops/oop.inline.hpp"
  38 #include "utilities/align.hpp"
  39 
  40 // max dfs depth should not exceed size of stack
  41 static const size_t max_dfs_depth = 5000;
  42 
  43 EdgeStore* DFSClosure::_edge_store = NULL;
  44 BitSet* DFSClosure::_mark_bits = NULL;
  45 const Edge* DFSClosure::_start_edge = NULL;
  46 size_t DFSClosure::_max_depth = max_dfs_depth;
  47 bool DFSClosure::_ignore_root_set = false;
  48 
  49 DFSClosure::DFSClosure() :
  50   _parent(NULL),
  51   _reference(NULL),
  52   _depth(0) {
  53 }
  54 


< prev index next >