Skip to content

Commit 7f7656a

Browse files
committed
Name the sweep thread
1 parent 0215b78 commit 7f7656a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

gc/default/default.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4769,6 +4769,10 @@ gc_sweep_thread_func(void *ptr)
47694769
{
47704770
rb_objspace_t *objspace = ptr;
47714771

4772+
#ifdef SET_CURRENT_THREAD_NAME
4773+
SET_CURRENT_THREAD_NAME("Ruby/VM Sweep");
4774+
#endif
4775+
47724776
psweep_debug(1, "[sweep] sweep_thread start\n");
47734777
sweep_lock_lock(&objspace->sweep_lock);
47744778
objspace->sweep_thread_sweep_exited = false;

0 commit comments

Comments
 (0)