[threads] Allow resetting the name of a threadpool thread (#4350)
[mono.git] / mono / metadata / appdomain.c
index 921aa7e2d611a2191140f50efce4bb772f8da35a..819ce65616e9a93d8628e0b5a39c55ce0b0a06de 100644 (file)
@@ -2486,7 +2486,7 @@ unload_thread_main (void *arg)
        /* Force it to be attached to avoid racing during shutdown. */
        thread = mono_thread_attach_full (mono_get_root_domain (), TRUE);
 
-       mono_thread_set_name_internal (thread->internal_thread, mono_string_new (mono_get_root_domain (), "Domain unloader"), TRUE, &error);
+       mono_thread_set_name_internal (thread->internal_thread, mono_string_new (mono_get_root_domain (), "Domain unloader"), TRUE, FALSE, &error);
        if (!is_ok (&error)) {
                data->failure_reason = g_strdup (mono_error_get_message (&error));
                mono_error_cleanup (&error);