Top


定義場所(file name)

hotspot/src/share/vm/gc_interface/collectedHeap.cpp

名前(function name)

void CollectedHeap::pre_full_gc_dump() {

本体部(body)

  {- -------------------------------------------
  (1) (この関数は, GC 実行前のヒープダンプを出力するためのもの)
      ---------------------------------------- -}

  {- -------------------------------------------
  (1) (トレース出力)
      (See: HeapDumper)
      ---------------------------------------- -}

      if (HeapDumpBeforeFullGC) {
        TraceTime tt("Heap Dump: ", PrintGCDetails, false, gclog_or_tty);
        // We are doing a "major" collection and a heap dump before
        // major collection has been requested.
        HeapDumper::dump_heap();
      }

  {- -------------------------------------------
  (1) (トレース出力)
      (See: VM_GC_HeapInspection)
      ---------------------------------------- -}

      if (PrintClassHistogramBeforeFullGC) {
        TraceTime tt("Class Histogram: ", PrintGCDetails, true, gclog_or_tty);
        VM_GC_HeapInspection inspector(gclog_or_tty, false /* ! full gc */, false /* ! prologue */);
        inspector.doit();
      }
    }

This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.