Skip to content

Commit 0112b7a

Browse files
committed
After adding the concept of a pending threads join list boehm was not removing the threads from that list on detach as sgen was in sgen_client_thread_detach_with_lock. This change brings boehm in line with sgen to remove threads from the pending join list on detach to avoid waiting the full 2 seconds on runtime shutdown. (case 1295072)
1 parent 29044e0 commit 0112b7a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mono/metadata/boehm-gc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,7 @@ mono_gc_thread_detach_with_lock (MonoThreadInfo *p)
513513

514514
tid = mono_thread_info_get_tid (p);
515515

516-
if (p->runtime_thread)
517-
mono_threads_add_joinable_thread ((gpointer)(gsize)tid);
516+
mono_threads_add_joinable_runtime_thread(p);
518517

519518
mono_handle_stack_free (p->handle_stack);
520519
p->handle_stack = NULL;

0 commit comments

Comments
 (0)