From e7a5358094b752e89a7dbe7c72405a64167d0637 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Wed, 13 Sep 2017 09:17:45 +0200 Subject: [PATCH] [Mono.Profiler.Log] Read root type field as uleb128. --- mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs index 5afdbbeb4eb..51908e1ca27 100644 --- a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs +++ b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs @@ -364,7 +364,7 @@ namespace Mono.Profiler.Log { for (var i = 0; i < list.Length; i++) { list [i] = new HeapRootsEvent.HeapRoot { ObjectPointer = ReadObject (), - Attributes = (LogHeapRootAttributes) Reader.ReadByte (), + Attributes = (LogHeapRootAttributes) Reader.ReadULeb128 (), ExtraInfo = (long) Reader.ReadULeb128 (), }; } -- 2.25.1