Fix address data emitted in the MonoProfilerGCRoots ETW event (#83284)
authorFilip Navara <navara@emclient.com>
Mon, 13 Mar 2023 10:19:02 +0000 (11:19 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Mar 2023 10:19:02 +0000 (11:19 +0100)
src/mono/mono/eventpipe/ep-rt-mono.c

index 7cedd7f..ebc5ef5 100644 (file)
@@ -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++;