Skip to content

Commit 1ee3092

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 e517929 commit 1ee3092

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
@@ -567,8 +567,7 @@ mono_gc_thread_detach_with_lock (MonoThreadInfo *p)
567567

568568
tid = mono_thread_info_get_tid (p);
569569

570-
if (p->runtime_thread)
571-
mono_threads_add_joinable_thread ((gpointer)tid);
570+
mono_threads_add_joinable_runtime_thread(p);
572571

573572
mono_handle_stack_free (p->handle_stack);
574573
p->handle_stack = NULL;

0 commit comments

Comments
 (0)