Only abort on dlsym when necessary.

If neither background_thread nor lazy_lock is in use, do not abort on dlsym
errors.
This commit is contained in:
Qi Wang
2017-06-14 12:12:23 -07:00
committed by Qi Wang
parent bdcf40a620
commit a4d6fe73cf
3 changed files with 19 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ extern malloc_mutex_t background_thread_lock;
extern atomic_b_t background_thread_enabled_state;
extern size_t n_background_threads;
extern background_thread_info_t *background_thread_info;
extern bool can_enable_background_thread;
bool background_thread_create(tsd_t *tsd, unsigned arena_ind);
bool background_threads_enable(tsd_t *tsd);