From e4f89569fe43316bfda7471342797c0cd1c711b2 Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Mon, 5 Oct 2026 19:15:16 +0200 Subject: [PATCH] [release/10.0] Fix msl wait time extraction in GC Backport of dotnet/runtime#135022, adapted to gc.cpp before the GC source-file split. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: f6205bb0-b7d2-47d7-bf83-96ed19e7b932 --- src/coreclr/gc/gc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/gc/gc.cpp b/src/coreclr/gc/gc.cpp index b013f0ec174453..f31502ecdc9342 100644 --- a/src/coreclr/gc/gc.cpp +++ b/src/coreclr/gc/gc.cpp @@ -26919,10 +26919,10 @@ void gc_heap::get_msl_wait_time (size_t* soh_msl_wait_time, size_t* uoh_msl_wait { gc_heap* hp = g_heaps[i]; - soh_msl_wait_time += hp->more_space_lock_soh.msl_wait_time; + *soh_msl_wait_time += hp->more_space_lock_soh.msl_wait_time; hp->more_space_lock_soh.msl_wait_time = 0; - uoh_msl_wait_time += hp->more_space_lock_uoh.msl_wait_time; + *uoh_msl_wait_time += hp->more_space_lock_uoh.msl_wait_time; hp->more_space_lock_uoh.msl_wait_time = 0; } }