From: Uri Simchoni Date: Sun, 6 Aug 2017 09:57:39 +0000 (+0300) Subject: [profile] set the "no profiling" bitmask equal to zero X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mono.git;a=commitdiff_plain;h=65e92f4cef463ed41475e0f9e35ba38592c76abb [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() --- 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. */