diff options
author | Qi Wang <interwq@gwu.edu> | 2017-03-28 04:50:38 (GMT) |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2017-04-07 16:55:14 (GMT) |
commit | fde3e20cc04db459f3c76134bc6dfb0ee5c422bb (patch) | |
tree | c5dd961498e734f52f02c40159ce0d8a52bb0af6 /src/tsd.c | |
parent | eeabdd246693fbf7c54e03ff8957889e63dc9a0c (diff) | |
download | jemalloc-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.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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 |