From 65e92f4cef463ed41475e0f9e35ba38592c76abb Mon Sep 17 00:00:00 2001 From: Uri Simchoni Date: Sun, 6 Aug 2017 12:57:39 +0300 Subject: [PATCH] [profile] set the "no profiling" bitmask equal to zero This makes constructs such as "if (!mono_profiler_get_call_instrumentation_flags(methos))" correct. See mono_method_check_inlining() --- mono/metadata/profiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mono/metadata/profiler.h b/mono/metadata/profiler.h index 08929a5d231..133fec753d9 100644 --- a/mono/metadata/profiler.h +++ b/mono/metadata/profiler.h @@ -167,7 +167,7 @@ MONO_API mono_bool mono_profiler_enable_allocations (void); typedef enum { /* Do not instrument calls. */ - MONO_PROFILER_CALL_INSTRUMENTATION_NONE = 1 << 0, + MONO_PROFILER_CALL_INSTRUMENTATION_NONE = 0, /* Instrument method prologues. */ MONO_PROFILER_CALL_INSTRUMENTATION_PROLOGUE = 1 << 1, /* Also capture a call context for prologues. */ -- 2.25.1