diff --git a/src/hotspot/share/runtime/perfData.cpp b/src/hotspot/share/runtime/perfData.cpp index f748826a622..d1caa2edeab 100644 --- a/src/hotspot/share/runtime/perfData.cpp +++ b/src/hotspot/share/runtime/perfData.cpp @@ -194,7 +194,7 @@ PerfLong::PerfLong(CounterNS ns, const char* namep, Units u, Variability v) PerfLongVariant::PerfLongVariant(CounterNS ns, const char* namep, Units u, Variability v, PerfLongSampleHelper* helper) : PerfLong(ns, namep, u, v), - _sampled(nullptr), _sample_helper(helper) { + _sample_helper(helper) { sample(); } diff --git a/src/hotspot/share/runtime/perfData.hpp b/src/hotspot/share/runtime/perfData.hpp index d4ac8a735ec..5c7b3d104e9 100644 --- a/src/hotspot/share/runtime/perfData.hpp +++ b/src/hotspot/share/runtime/perfData.hpp @@ -396,7 +396,6 @@ class PerfLongConstant : public PerfLong { class PerfLongVariant : public PerfLong { protected: - jlong* _sampled; PerfLongSampleHelper* _sample_helper; PerfLongVariant(CounterNS ns, const char* namep, Units u, Variability v,