From 77864ee7734cf6b6afc902bdcd2356f2bd19bd17 Mon Sep 17 00:00:00 2001 From: Thomas Schatzl <59967451+tschatzl@users.noreply.github.com> Date: Tue, 27 Jan 2026 14:59:29 +0100 Subject: [PATCH] Update src/hotspot/share/gc/shared/referenceProcessorPhaseTimes.cpp Co-authored-by: Stefan Karlsson --- src/hotspot/share/gc/shared/referenceProcessorPhaseTimes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/gc/shared/referenceProcessorPhaseTimes.cpp b/src/hotspot/share/gc/shared/referenceProcessorPhaseTimes.cpp index 2f0c62df126..b62a70b3f50 100644 --- a/src/hotspot/share/gc/shared/referenceProcessorPhaseTimes.cpp +++ b/src/hotspot/share/gc/shared/referenceProcessorPhaseTimes.cpp @@ -196,7 +196,7 @@ void ReferenceProcessorPhaseTimes::reset() { _soft_weak_final_refs_phase_worker_time_sec->reset(); for (int i = 0; i < number_of_subclasses_of_ref; i++) { - ::new (&_ref_dropped[i]) Atomic{}; + _ref_dropped[i].store_relaxed(0); _ref_discovered[i] = 0; }