summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2017-04-06 02:23:41 (GMT)
committerQi Wang <interwq@gmail.com>2017-04-07 17:42:29 (GMT)
commit0fba57e579e688d0ccda5a615c91ab66cd4ba54a (patch)
treecce5b485e987e60a22c0ab60ae88aedb151576fd /src
parentfde3e20cc04db459f3c76134bc6dfb0ee5c422bb (diff)
downloadjemalloc-0fba57e579e688d0ccda5a615c91ab66cd4ba54a.zip
jemalloc-0fba57e579e688d0ccda5a615c91ab66cd4ba54a.tar.gz
jemalloc-0fba57e579e688d0ccda5a615c91ab66cd4ba54a.tar.bz2
Get rid of tcache_enabled_t as we have runtime init support.
Diffstat (limited to 'src')
-rw-r--r--src/tcache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tcache.c b/src/tcache.c
index aa2917b..b8ce4a0 100644
--- a/src/tcache.c
+++ b/src/tcache.c
@@ -326,7 +326,7 @@ tcache_arena_reassociate(tsdn_t *tsdn, tcache_t *tcache, arena_t *arena) {
bool
tsd_tcache_enabled_data_init(tsd_t *tsd) {
/* Called upon tsd initialization. */
- tsd_tcache_enabled_set(tsd, (tcache_enabled_t)opt_tcache);
+ tsd_tcache_enabled_set(tsd, opt_tcache);
if (opt_tcache) {
/* Trigger tcache init. */
tsd_tcache_data_init(tsd);
@@ -501,13 +501,13 @@ tcache_cleanup(tsd_t *tsd) {
tcache_t *tcache = tsd_tcachep_get(tsd);
if (!tcache_available(tsd)) {
- assert(tsd_tcache_enabled_get(tsd) == tcache_enabled_false);
+ assert(tsd_tcache_enabled_get(tsd) == false);
if (config_debug) {
assert(tcache->tbins[0].avail == NULL);
}
return;
}
- assert(tsd_tcache_enabled_get(tsd) == tcache_enabled_true);
+ assert(tsd_tcache_enabled_get(tsd));
assert(tcache->tbins[0].avail != NULL);
tcache_destroy(tsd, tcache, true);