summaryrefslogtreecommitdiffstats
path: root/src/background_thread.c
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2017-10-04 23:39:33 (GMT)
committerQi Wang <interwq@gmail.com>2017-10-06 05:57:56 (GMT)
commita2e6eb2c226ff63397220517883e13717f97da05 (patch)
tree83128a7f701d10cecf990e6bd9ee593cfe5b8868 /src/background_thread.c
parent79e83451ff262fbc4bf66059eae672286b5eb9f0 (diff)
downloadjemalloc-a2e6eb2c226ff63397220517883e13717f97da05.zip
jemalloc-a2e6eb2c226ff63397220517883e13717f97da05.tar.gz
jemalloc-a2e6eb2c226ff63397220517883e13717f97da05.tar.bz2
Delay background_thread_ctl_init to right before thread creation.
ctl_init sets isthreaded, which means it should be done without holding any locks.
Diffstat (limited to 'src/background_thread.c')
-rw-r--r--src/background_thread.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/background_thread.c b/src/background_thread.c
index eb30eb5..609be52 100644
--- a/src/background_thread.c
+++ b/src/background_thread.c
@@ -848,9 +848,6 @@ background_thread_boot1(tsdn_t *tsdn) {
malloc_mutex_rank_exclusive)) {
return true;
}
- if (opt_background_thread) {
- background_thread_ctl_init(tsdn);
- }
background_thread_info = (background_thread_info_t *)base_alloc(tsdn,
b0get(), ncpus * sizeof(background_thread_info_t), CACHELINE);