Merge pull request #3775 from alexrp/main-thread-name
authorAlex Rønne Petersen <alex@alexrp.com>
Fri, 14 Oct 2016 21:16:15 +0000 (23:16 +0200)
committerGitHub <noreply@github.com>
Fri, 14 Oct 2016 21:16:15 +0000 (23:16 +0200)
[runtime] Don't change the native name of the main thread.

mono/mini/driver.c

index e31628dc795b53151c8028fd03e04d7386e705c8..2d5f901d7ea46507ffd782c7e3786c26a4f42a59 100644 (file)
@@ -1980,12 +1980,6 @@ mono_main (int argc, char* argv[])
        /* Set rootdir before loading config */
        mono_set_rootdir ();
 
-       /*
-        * We only set the native name of the thread since MS.NET leaves the
-        * managed thread name for the main thread as null.
-        */
-       mono_native_thread_set_name (mono_native_thread_id_get (), "Main");
-
        if (enable_profile) {
                mono_profiler_load (profile_options);
                mono_profiler_thread_name (MONO_NATIVE_THREAD_ID_TO_UINT (mono_native_thread_id_get ()), "Main");