[threads] Allow resetting the name of a threadpool thread (#4350)
[mono.git] / mono / mini / aot-compiler.c
index 701364be006eb4776bc2a7e94ba4ad1ebf8e7077..6e91638d881fe1f3f3f97a4cf2c9d97e12c9555b 100644 (file)
@@ -7897,7 +7897,7 @@ compile_thread_main (gpointer user_data)
 
        MonoError error;
        MonoThread *thread = mono_thread_attach (domain);
-       mono_thread_set_name_internal (thread->internal_thread, mono_string_new (mono_get_root_domain (), "AOT compiler"), TRUE, &error);
+       mono_thread_set_name_internal (thread->internal_thread, mono_string_new (mono_get_root_domain (), "AOT compiler"), TRUE, FALSE, &error);
        mono_error_assert_ok (&error);
 
        for (i = 0; i < methods->len; ++i)