summaryrefslogtreecommitdiffstats
path: root/src/tsd.c
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2017-03-28 04:50:38 (GMT)
committerQi Wang <interwq@gmail.com>2017-04-07 16:55:14 (GMT)
commitfde3e20cc04db459f3c76134bc6dfb0ee5c422bb (patch)
treec5dd961498e734f52f02c40159ce0d8a52bb0af6 /src/tsd.c
parenteeabdd246693fbf7c54e03ff8957889e63dc9a0c (diff)
downloadjemalloc-fde3e20cc04db459f3c76134bc6dfb0ee5c422bb.zip
jemalloc-fde3e20cc04db459f3c76134bc6dfb0ee5c422bb.tar.gz
jemalloc-fde3e20cc04db459f3c76134bc6dfb0ee5c422bb.tar.bz2
Integrate auto tcache into TSD.
The embedded tcache is initialized upon tsd initialization. The avail arrays for the tbins will be allocated / deallocated accordingly during init / cleanup. With this change, the pointer to the auto tcache will always be available, as long as we have access to the TSD. tcache_available() (called in tcache_get()) is provided to check if we should use tcache.
Diffstat (limited to 'src/tsd.c')
-rw-r--r--src/tsd.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/tsd.c b/src/tsd.c
index 8650211..8b54770 100644
--- a/src/tsd.c
+++ b/src/tsd.c
@@ -21,11 +21,6 @@ malloc_tsd_dalloc(void *wrapper) {
a0dalloc(wrapper);
}
-void
-malloc_tsd_no_cleanup(void *arg) {
- not_reached();
-}
-
#if defined(JEMALLOC_MALLOC_THREAD_CLEANUP) || defined(_WIN32)
#ifndef _WIN32
JEMALLOC_EXPORT