From 1ba19069e95222e3eef9d1659607b248a7a926c8 Mon Sep 17 00:00:00 2001 From: "Andres G. Aragoneses" Date: Fri, 21 Sep 2012 21:35:51 +0100 Subject: [PATCH] micro-optimization: return early after setting guithread No need to compare thread ids in this call. --- profiler/gui-thread-check.c | 1 + 1 file changed, 1 insertion(+) diff --git a/profiler/gui-thread-check.c b/profiler/gui-thread-check.c index 8775567a4..fcd4046ef 100644 --- a/profiler/gui-thread-check.c +++ b/profiler/gui-thread-check.c @@ -62,6 +62,7 @@ simple_method_enter (MonoProfiler *prof, MonoMethod *method) guithread_set = TRUE; guithread = current_thread_id; printf ("*** GUI THREAD INITIALIZED: %u\n", guithread); + return; } if (current_thread_id != guithread && !(strcmp (klass_name, "Object")==0 && strcmp (method_name, "Dispose")==0) &&