* gc.c: set the name of the finalizer thread.
* threadpool.c: set the name of the threadpool worker threads.
#endif
gc_thread = mono_thread_create_internal (mono_domain_get (), finalizer_thread, NULL, FALSE);
+ ves_icall_System_Threading_Thread_SetName_internal (gc_thread, mono_string_new (mono_domain_get (), "Finalizer"));
}
void
tp = data;
thread = mono_thread_internal_current ();
+ ves_icall_System_Threading_Thread_SetName_internal (thread, mono_string_new (mono_domain_get (), "Threapool monitor"));
while (1) {
ms = 500;
do {
thread = mono_thread_internal_current ();
mono_profiler_thread_start (thread->tid);
+ ves_icall_System_Threading_Thread_SetName_internal (thread, mono_string_new (mono_domain_get (), "Threapool worker"));
if (tp_start_func)
tp_start_func (tp_hooks_user_data);