| 757 | #endif /* defined(JEMALLOC_BACKGROUND_THREAD) */ |
| 758 | |
| 759 | bool |
| 760 | background_thread_boot0(void) { |
| 761 | if (!have_background_thread && opt_background_thread) { |
| 762 | malloc_printf("<jemalloc>: option background_thread currently " |
| 763 | "supports pthread only\n"); |
| 764 | return true; |
| 765 | } |
| 766 | #ifdef JEMALLOC_PTHREAD_CREATE_WRAPPER |
| 767 | if ((config_lazy_lock || opt_background_thread) && |
| 768 | pthread_create_fptr_init()) { |
| 769 | return true; |
| 770 | } |
| 771 | #endif |
| 772 | return false; |
| 773 | } |
| 774 | |
| 775 | bool |
| 776 | background_thread_boot1(tsdn_t *tsdn, base_t *base) { |
no test coverage detected