diff options
author | David Karlaš <david.karlas@gmail.com> | 2017-12-04 00:23:17 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-12-04 05:45:58 +0300 |
commit | 2bab8fa49ecfbc861b6368477c52bc9ba19377cb (patch) | |
tree | 1557b08d4fdfca1eb54eab7713ba4ffc55377528 /mcs/class/Mono.Profiler.Log | |
parent | 5bdaef7e5f6479cc4336bb809b419e85ad706dd7 (diff) |
[Profiler] Fix parsing bug when `jit` is enabled
Bug was caused by wrong values in enum because `string` is parsed only when type is `SpecificTrampoline` but with mismatching values between C and C# enums it didn't parse string when it should causing parsing next event throwing random exceptions because there was still unexpected string data.
Diffstat (limited to 'mcs/class/Mono.Profiler.Log')
-rw-r--r-- | mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEnums.cs | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEnums.cs b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEnums.cs index 711f948fa26..c4ffb2bb923 100644 --- a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEnums.cs +++ b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEnums.cs @@ -119,17 +119,16 @@ namespace Mono.Profiler.Log { // mono/metadata/profiler.h : MonoProfilerCodeBufferType public enum LogJitHelper { - Unknown = 0, - Method = 1, - MethodTrampoline = 2, - UnboxTrampoline = 3, - ImtTrampoline = 4, - GenericsTrampoline = 5, - SpecificTrampoline = 6, - Helper = 7, - Monitor = 8, - DelegateInvoke = 9, - ExceptionHandling = 10, + Method = 0, + MethodTrampoline = 1, + UnboxTrampoline = 2, + ImtTrampoline = 3, + GenericsTrampoline = 4, + SpecificTrampoline = 5, + Helper = 6, + Monitor = 7, + DelegateInvoke = 8, + ExceptionHandling = 9, } // mono/metadata/profiler.h : MonoProfilerGCRootType |