Skip to content

Commit 3189785

Browse files
committed
Fix setting sweep thread name
1 parent 1dd5e5f commit 3189785

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
@@ -192,6 +192,10 @@ static struct heap_page *current_sweep_thread_page;
192192
#endif
193193
#endif
194194

195+
#if !defined(SET_CURRENT_THREAD_NAME) && defined(__linux__) && defined(PR_SET_NAME)
196+
# define SET_CURRENT_THREAD_NAME(name) prctl(PR_SET_NAME, name)
197+
#endif
198+
195199
#ifndef PRINT_ENTER_EXIT_TICK
196200
# define PRINT_ENTER_EXIT_TICK 0
197201
#endif

0 commit comments

Comments
 (0)