8217857: ZGC: Move SvcGCMarker to ZServiceabilityTracer
Reviewed-by: stefank, eosterlund
This commit is contained in:
parent
c97eccd24a
commit
62e8d6f43b
src/hotspot/share/gc/z
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -24,7 +24,6 @@
|
||||
#include "precompiled.hpp"
|
||||
#include "gc/shared/gcId.hpp"
|
||||
#include "gc/shared/gcLocker.hpp"
|
||||
#include "gc/shared/gcVMOperations.hpp"
|
||||
#include "gc/shared/isGCActiveMark.hpp"
|
||||
#include "gc/z/zCollectedHeap.hpp"
|
||||
#include "gc/z/zDriver.hpp"
|
||||
@ -99,9 +98,6 @@ public:
|
||||
|
||||
ZStatSample(ZSamplerJavaThreads, Threads::number_of_threads());
|
||||
|
||||
// JVMTI support
|
||||
SvcGCMarker sgcm(SvcGCMarker::CONCURRENT);
|
||||
|
||||
// Setup GC id
|
||||
GCIdMark gcid(_gc_id);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -25,6 +25,7 @@
|
||||
#define SHARE_GC_Z_ZSERVICEABILITY_HPP
|
||||
|
||||
#include "gc/shared/collectorCounters.hpp"
|
||||
#include "gc/shared/gcVMOperations.hpp"
|
||||
#include "memory/allocation.hpp"
|
||||
#include "services/memoryManager.hpp"
|
||||
#include "services/memoryPool.hpp"
|
||||
@ -88,12 +89,14 @@ public:
|
||||
template <bool IsGCStart, bool IsGCEnd>
|
||||
class ZServiceabilityTracer : public StackObj {
|
||||
private:
|
||||
SvcGCMarker _svc_gc_marker;
|
||||
ZServiceabilityMemoryUsageTracker _memory_usage_tracker;
|
||||
ZServiceabilityManagerStatsTracer _manager_stats_tracer;
|
||||
ZServiceabilityCountersTracer _counters_tracer;
|
||||
|
||||
public:
|
||||
ZServiceabilityTracer() :
|
||||
_svc_gc_marker(SvcGCMarker::CONCURRENT),
|
||||
_memory_usage_tracker(),
|
||||
_manager_stats_tracer(IsGCStart, IsGCEnd),
|
||||
_counters_tracer() {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user