Make use of pthread_set_name_np(3) on FreeBSD.
This commit is contained in:
committed by
Qi Wang
parent
936bc2aa15
commit
ceba1dde27
@@ -509,6 +509,8 @@ background_thread_entry(void *ind_arg) {
|
||||
assert(thread_ind < max_background_threads);
|
||||
#ifdef JEMALLOC_HAVE_PTHREAD_SETNAME_NP
|
||||
pthread_setname_np(pthread_self(), "jemalloc_bg_thd");
|
||||
#elif defined(__FreeBSD__)
|
||||
pthread_set_name_np(pthread_self(), "jemalloc_bg_thd");
|
||||
#endif
|
||||
if (opt_percpu_arena != percpu_arena_disabled) {
|
||||
set_current_thread_affinity((int)thread_ind);
|
||||
|
Reference in New Issue
Block a user