summaryrefslogtreecommitdiffstats
path: root/src/tcache.c
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2017-04-07 21:12:30 (GMT)
committerQi Wang <interwq@gmail.com>2017-04-11 16:58:12 (GMT)
commitbfa530b75b15b6965566d8d47ad8d722da722f52 (patch)
tree7e3c2eb603e796afbe58c12c4ca25d8764693aea /src/tcache.c
parent8209df24ea5bc1dcb560ac64cf2b4ff552f8c9ff (diff)
downloadjemalloc-bfa530b75b15b6965566d8d47ad8d722da722f52.zip
jemalloc-bfa530b75b15b6965566d8d47ad8d722da722f52.tar.gz
jemalloc-bfa530b75b15b6965566d8d47ad8d722da722f52.tar.bz2
Pass dealloc_ctx down free() fast path.
This gets rid of the redundent rtree lookup down fast path.
Diffstat (limited to 'src/tcache.c')
-rw-r--r--src/tcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tcache.c b/src/tcache.c
index 34b46af..09776e1 100644
--- a/src/tcache.c
+++ b/src/tcache.c
@@ -499,10 +499,10 @@ tcache_destroy(tsd_t *tsd, tcache_t *tcache, bool tsd_tcache) {
void *avail_array =
(void *)((uintptr_t)tcache_small_bin_get(tcache, 0)->avail -
(uintptr_t)tcache_bin_info[0].ncached_max * sizeof(void *));
- idalloctm(tsd_tsdn(tsd), avail_array, NULL, true, true);
+ idalloctm(tsd_tsdn(tsd), avail_array, NULL, NULL, true, true);
} else {
/* Release both the tcache struct and avail array. */
- idalloctm(tsd_tsdn(tsd), tcache, NULL, true, true);
+ idalloctm(tsd_tsdn(tsd), tcache, NULL, NULL, true, true);
}
}