From 12e53bcd36b9aaeb2dceb3db5110e070ee697ef8 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Mon, 30 May 2016 20:17:45 +0200 Subject: [PATCH] [coop] Use mono_thread_info_is_current in checked build --- mono/utils/checked-build.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mono/utils/checked-build.c b/mono/utils/checked-build.c index 5fb185d6e9d..6f5606bdb80 100644 --- a/mono/utils/checked-build.c +++ b/mono/utils/checked-build.c @@ -184,10 +184,9 @@ checked_build_thread_transition (const char *transition, void *info, int from_st if (!mono_check_mode_enabled (MONO_CHECK_MODE_THREAD)) return; - MonoThreadInfo *cur = mono_thread_info_current_unchecked (); CheckState *state = get_state (); /* We currently don't record external changes as those are hard to reason about. */ - if (cur != info) + if (!mono_thread_info_is_current (info)) return; if (state->transitions->len >= MAX_TRANSITIONS) -- 2.25.1