From 46f9533d9b0663aa652b6dc7001417d4924343d2 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Mon, 13 Mar 2023 11:19:02 +0100 Subject: [PATCH] Fix address data emitted in the MonoProfilerGCRoots ETW event (#83284) --- src/mono/mono/eventpipe/ep-rt-mono.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/mono/eventpipe/ep-rt-mono.c b/src/mono/mono/eventpipe/ep-rt-mono.c index 7cedd7f4060..ebc5ef5c8c7 100644 --- a/src/mono/mono/eventpipe/ep-rt-mono.c +++ b/src/mono/mono/eventpipe/ep-rt-mono.c @@ -5523,7 +5523,7 @@ mono_profiler_fire_buffered_gc_event_roots ( objects++; // GCRoots.Values[].AddressID. - address_id = (uintptr_t)*objects; + address_id = (uintptr_t)*addresses; memcpy (buffer, &address_id, sizeof (address_id)); buffer += sizeof (address_id); addresses++; -- 2.34.1