From fe29d23c7dd75bf028a2a458c0addb59e2f19648 Mon Sep 17 00:00:00 2001 From: Uri Simchoni Date: Sun, 13 Aug 2017 09:46:42 +0300 Subject: [PATCH] [profiler] Fix log profiler SetMonitorEvents icall Set the right flag when enabling/disabling monitor event profiling --- mono/profiler/log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mono/profiler/log.c b/mono/profiler/log.c index 8a3790aac24..4f463c28b95 100644 --- a/mono/profiler/log.c +++ b/mono/profiler/log.c @@ -4256,12 +4256,12 @@ proflog_icall_SetMonitorEvents (MonoBoolean value) mono_coop_mutex_lock (&log_profiler.api_mutex); if (value) { - ENABLE (PROFLOG_EXCEPTION_EVENTS); + ENABLE (PROFLOG_MONITOR_EVENTS); mono_profiler_set_monitor_contention_callback (log_profiler.handle, monitor_contention); mono_profiler_set_monitor_acquired_callback (log_profiler.handle, monitor_acquired); mono_profiler_set_monitor_failed_callback (log_profiler.handle, monitor_failed); } else { - DISABLE (PROFLOG_EXCEPTION_EVENTS); + DISABLE (PROFLOG_MONITOR_EVENTS); mono_profiler_set_monitor_contention_callback (log_profiler.handle, NULL); mono_profiler_set_monitor_acquired_callback (log_profiler.handle, NULL); mono_profiler_set_monitor_failed_callback (log_profiler.handle, NULL); -- 2.25.1