[threads] Allow resetting the name of a threadpool thread (#4350)
[mono.git] / mono / metadata / threadpool-worker-default.c
index 6c499ebac9b2f9bead737848bf52ded8420036b6..6e3a4b52130246a4f2a1d63fe02b3f443e51bca6 100644 (file)
@@ -546,7 +546,6 @@ static gsize WINAPI
 worker_thread (gpointer data)
 {
        MonoThreadPoolWorker *worker;
-       MonoError error;
        MonoInternalThread *thread;
        ThreadPoolWorkerCounter counter;
 
@@ -567,9 +566,6 @@ worker_thread (gpointer data)
        g_ptr_array_add (worker->threads, thread);
        mono_coop_mutex_unlock (&worker->threads_lock);
 
-       mono_thread_set_name_internal (thread, mono_string_new (mono_get_root_domain (), "Threadpool worker"), FALSE, &error);
-       mono_error_assert_ok (&error);
-
        while (!mono_runtime_is_shutting_down ()) {
                ThreadPoolWorkItem work_item;