src/hotspot/share/jfr/leakprofiler/chains/pathToGcRootsOperation.cpp
author chegar
Thu, 17 Oct 2019 20:54:25 +0100
branchdatagramsocketimpl-branch
changeset 58679 9c3209ff7550
parent 58678 9cf78a70fa4f
parent 58132 caa25ab47aca
permissions -rw-r--r--
datagramsocketimpl-branch: merge with default
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
55571
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
     1
/*
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
     2
 * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
     4
 *
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
     7
 * published by the Free Software Foundation.
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
     8
 *
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    13
 * accompanied this code).
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    14
 *
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    18
 *
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    21
 * questions.
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    22
 *
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    23
 */
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    24
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    25
#include "precompiled.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    26
#include "gc/shared/collectedHeap.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    27
#include "jfr/leakprofiler/leakProfiler.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    28
#include "jfr/leakprofiler/chains/bfsClosure.hpp"
58014
aba258cd7df8 8229189: Improve JFR leak profiler tracing to deal with discontiguous heaps
eosterlund
parents: 57811
diff changeset
    29
#include "jfr/leakprofiler/chains/bitset.inline.hpp"
55571
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    30
#include "jfr/leakprofiler/chains/dfsClosure.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    31
#include "jfr/leakprofiler/chains/edge.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    32
#include "jfr/leakprofiler/chains/edgeQueue.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    33
#include "jfr/leakprofiler/chains/edgeStore.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    34
#include "jfr/leakprofiler/chains/objectSampleMarker.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    35
#include "jfr/leakprofiler/chains/rootSetClosure.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    36
#include "jfr/leakprofiler/chains/edgeStore.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    37
#include "jfr/leakprofiler/chains/objectSampleMarker.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    38
#include "jfr/leakprofiler/chains/pathToGcRootsOperation.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    39
#include "jfr/leakprofiler/checkpoint/eventEmitter.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    40
#include "jfr/leakprofiler/checkpoint/objectSampleCheckpoint.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    41
#include "jfr/leakprofiler/sampling/objectSample.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    42
#include "jfr/leakprofiler/sampling/objectSampler.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    43
#include "jfr/leakprofiler/utilities/granularTimer.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    44
#include "logging/log.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    45
#include "memory/universe.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    46
#include "oops/oop.inline.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    47
#include "runtime/safepoint.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    48
#include "utilities/globalDefinitions.hpp"
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    49
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    50
PathToGcRootsOperation::PathToGcRootsOperation(ObjectSampler* sampler, EdgeStore* edge_store, int64_t cutoff, bool emit_all) :
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    51
  _sampler(sampler),_edge_store(edge_store), _cutoff_ticks(cutoff), _emit_all(emit_all) {}
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    52
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    53
/* The EdgeQueue is backed by directly managed virtual memory.
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    54
 * We will attempt to dimension an initial reservation
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    55
 * in proportion to the size of the heap (represented by heap_region).
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    56
 * Initial memory reservation: 5% of the heap OR at least 32 Mb
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    57
 * Commit ratio: 1 : 10 (subject to allocation granularties)
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    58
 */
58014
aba258cd7df8 8229189: Improve JFR leak profiler tracing to deal with discontiguous heaps
eosterlund
parents: 57811
diff changeset
    59
static size_t edge_queue_memory_reservation() {
aba258cd7df8 8229189: Improve JFR leak profiler tracing to deal with discontiguous heaps
eosterlund
parents: 57811
diff changeset
    60
  const size_t memory_reservation_bytes = MAX2(MaxHeapSize / 20, 32*M);
55571
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    61
  assert(memory_reservation_bytes >= (size_t)32*M, "invariant");
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    62
  return memory_reservation_bytes;
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    63
}
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    64
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    65
static size_t edge_queue_memory_commit_size(size_t memory_reservation_bytes) {
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    66
  const size_t memory_commit_block_size_bytes = memory_reservation_bytes / 10;
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    67
  assert(memory_commit_block_size_bytes >= (size_t)3*M, "invariant");
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    68
  return memory_commit_block_size_bytes;
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    69
}
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    70
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    71
static void log_edge_queue_summary(const EdgeQueue& edge_queue) {
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    72
  log_trace(jfr, system)("EdgeQueue reserved size total: " SIZE_FORMAT " [KB]", edge_queue.reserved_size() / K);
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    73
  log_trace(jfr, system)("EdgeQueue edges total: " SIZE_FORMAT, edge_queue.top());
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    74
  log_trace(jfr, system)("EdgeQueue liveset total: " SIZE_FORMAT " [KB]", edge_queue.live_set() / K);
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    75
  if (edge_queue.reserved_size() > 0) {
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    76
    log_trace(jfr, system)("EdgeQueue commit reserve ratio: %f\n",
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    77
      ((double)edge_queue.live_set() / (double)edge_queue.reserved_size()));
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    78
  }
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    79
}
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    80
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    81
void PathToGcRootsOperation::doit() {
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    82
  assert(SafepointSynchronize::is_at_safepoint(), "invariant");
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    83
  assert(_cutoff_ticks > 0, "invariant");
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    84
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    85
  // The bitset used for marking is dimensioned as a function of the heap size
58014
aba258cd7df8 8229189: Improve JFR leak profiler tracing to deal with discontiguous heaps
eosterlund
parents: 57811
diff changeset
    86
  BitSet mark_bits;
55571
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    87
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    88
  // The edge queue is dimensioned as a fraction of the heap size
58014
aba258cd7df8 8229189: Improve JFR leak profiler tracing to deal with discontiguous heaps
eosterlund
parents: 57811
diff changeset
    89
  const size_t edge_queue_reservation_size = edge_queue_memory_reservation();
55571
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    90
  EdgeQueue edge_queue(edge_queue_reservation_size, edge_queue_memory_commit_size(edge_queue_reservation_size));
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    91
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    92
  // The initialize() routines will attempt to reserve and allocate backing storage memory.
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    93
  // Failure to accommodate will render root chain processing impossible.
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    94
  // As a fallback on failure, just write out the existing samples, flat, without chains.
58014
aba258cd7df8 8229189: Improve JFR leak profiler tracing to deal with discontiguous heaps
eosterlund
parents: 57811
diff changeset
    95
  if (!edge_queue.initialize()) {
55571
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    96
    log_warning(jfr)("Unable to allocate memory for root chain processing");
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    97
    return;
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    98
  }
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
    99
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   100
  // Save the original markWord for the potential leak objects,
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   101
  // to be restored on function exit
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   102
  ObjectSampleMarker marker;
58132
caa25ab47aca 8225797: OldObjectSample event creates unexpected amount of checkpoint data
mgronlun
parents: 58014
diff changeset
   103
  if (ObjectSampleCheckpoint::save_mark_words(_sampler, marker, _emit_all) == 0) {
55571
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   104
    // no valid samples to process
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   105
    return;
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   106
  }
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   107
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   108
  // Necessary condition for attempting a root set iteration
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   109
  Universe::heap()->ensure_parsability(false);
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   110
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   111
  BFSClosure bfs(&edge_queue, _edge_store, &mark_bits);
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   112
  RootSetClosure<BFSClosure> roots(&bfs);
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   113
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   114
  GranularTimer::start(_cutoff_ticks, 1000000);
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   115
  roots.process();
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   116
  if (edge_queue.is_full()) {
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   117
    // Pathological case where roots don't fit in queue
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   118
    // Do a depth-first search, but mark roots first
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   119
    // to avoid walking sideways over roots
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   120
    DFSClosure::find_leaks_from_root_set(_edge_store, &mark_bits);
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   121
  } else {
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   122
    bfs.process();
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   123
  }
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   124
  GranularTimer::stop();
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   125
  log_edge_queue_summary(edge_queue);
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   126
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   127
  // Emit old objects including their reference chains as events
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   128
  EventEmitter emitter(GranularTimer::start_time(), GranularTimer::end_time());
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   129
  emitter.write_events(_sampler, _edge_store, _emit_all);
49102ba8cf14 8214542: JFR: Old Object Sample event slow on a deep heap in debug builds
mgronlun
parents:
diff changeset
   130
}