[profile] set the "no profiling" bitmask equal to zero
authorUri Simchoni <uri@vfunction.com>
Sun, 6 Aug 2017 09:57:39 +0000 (12:57 +0300)
committerUri Simchoni <uri@vfunction.com>
Mon, 7 Aug 2017 16:54:45 +0000 (19:54 +0300)
This makes constructs such as "if (!mono_profiler_get_call_instrumentation_flags(methos))"
correct. See mono_method_check_inlining()

mono/metadata/profiler.h

index 08929a5d23142639a349b3d5c8129a6920cf226b..133fec753d9d1be212209078c420a629e80fca10 100644 (file)
@@ -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. */