Skip to content

Commit 53f3835

Browse files
committed
8256419: ZGC: Remove "Heap Used Before/After Mark/Relocation" samplers
Reviewed-by: eosterlund, stefank
1 parent b450e7c commit 53f3835

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/hotspot/share/gc/z/zHeap.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@
4848
#include "runtime/thread.hpp"
4949
#include "utilities/debug.hpp"
5050

51-
static const ZStatSampler ZSamplerHeapUsedBeforeMark("Memory", "Heap Used Before Mark", ZStatUnitBytes);
52-
static const ZStatSampler ZSamplerHeapUsedAfterMark("Memory", "Heap Used After Mark", ZStatUnitBytes);
53-
static const ZStatSampler ZSamplerHeapUsedBeforeRelocation("Memory", "Heap Used Before Relocation", ZStatUnitBytes);
54-
static const ZStatSampler ZSamplerHeapUsedAfterRelocation("Memory", "Heap Used After Relocation", ZStatUnitBytes);
5551
static const ZStatCounter ZCounterUndoPageAllocation("Memory", "Undo Page Allocation", ZStatUnitOpsPerSecond);
5652
static const ZStatCounter ZCounterOutOfMemory("Memory", "Out Of Memory", ZStatUnitOpsPerSecond);
5753

@@ -246,9 +242,6 @@ void ZHeap::flip_to_remapped() {
246242
void ZHeap::mark_start() {
247243
assert(SafepointSynchronize::is_at_safepoint(), "Should be at safepoint");
248244

249-
// Update statistics
250-
ZStatSample(ZSamplerHeapUsedBeforeMark, used());
251-
252245
// Flip address view
253246
flip_to_marked();
254247

@@ -295,7 +288,6 @@ bool ZHeap::mark_end() {
295288
ZVerify::after_mark();
296289

297290
// Update statistics
298-
ZStatSample(ZSamplerHeapUsedAfterMark, used());
299291
ZStatHeap::set_at_mark_end(capacity(), allocated(), used());
300292

301293
// Block resurrection of weak/phantom references
@@ -444,7 +436,6 @@ void ZHeap::relocate_start() {
444436
ZGlobalPhase = ZPhaseRelocate;
445437

446438
// Update statistics
447-
ZStatSample(ZSamplerHeapUsedBeforeRelocation, used());
448439
ZStatHeap::set_at_relocate_start(capacity(), allocated(), used());
449440

450441
// Notify JVMTI
@@ -456,7 +447,6 @@ void ZHeap::relocate() {
456447
const bool success = _relocate.relocate(&_relocation_set);
457448

458449
// Update statistics
459-
ZStatSample(ZSamplerHeapUsedAfterRelocation, used());
460450
ZStatRelocation::set_at_relocate_end(success);
461451
ZStatHeap::set_at_relocate_end(capacity(), allocated(), reclaimed(),
462452
used(), used_high(), used_low());

0 commit comments

Comments
 (0)