diff options
author | Qi Wang <interwq@gwu.edu> | 2017-04-07 21:12:30 (GMT) |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2017-04-11 16:58:12 (GMT) |
commit | bfa530b75b15b6965566d8d47ad8d722da722f52 (patch) | |
tree | 7e3c2eb603e796afbe58c12c4ca25d8764693aea /src/tcache.c | |
parent | 8209df24ea5bc1dcb560ac64cf2b4ff552f8c9ff (diff) | |
download | jemalloc-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.c | 4 |
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); } } |