Lines Matching refs:tcache

674 		 * individual threads do not lock when recording tcache stats
682 tcache_t *tcache;
685 ql_foreach(tcache, &arena->tcache_ql, link) {
686 tcache_stats_merge(tsdn, tcache, arena);
1175 CONF_HANDLE_BOOL(opt_tcache, "tcache")
1706 tcache_t *tcache;
1709 /* Fill in the tcache. */
1712 /* Getting tcache ptr unconditionally. */
1713 tcache = tsd_tcachep_get(tsd);
1714 assert(tcache == tcache_get(tsd));
1716 tcache = tcache_get(tsd);
1719 tcache = NULL;
1721 tcache = tcaches_get(tsd, dopts->tcache_ind);
1729 * allocation out of the tcache.
1738 dopts->zero, tcache, arena);
1741 return iallocztm(tsd_tsdn(tsd), size, ind, dopts->zero, tcache, false,
2224 ifree(tsd_t *tsd, void *ptr, tcache_t *tcache, bool slow_path) {
2254 idalloctm(tsd_tsdn(tsd), ptr, tcache, &alloc_ctx, false,
2257 idalloctm(tsd_tsdn(tsd), ptr, tcache, &alloc_ctx, false,
2263 isfree(tsd_t *tsd, void *ptr, size_t usize, tcache_t *tcache, bool slow_path) {
2312 isdalloct(tsd_tsdn(tsd), ptr, usize, tcache, ctx, false);
2314 isdalloct(tsd_tsdn(tsd), ptr, usize, tcache, ctx, true);
2335 tcache_t *tcache;
2338 tcache = tcache_get(tsd);
2340 tcache = NULL;
2342 ifree(tsd, ptr, tcache, true);
2413 * We avoid setting up tsd fully (e.g. tcache, arena binding)
2423 tcache_t *tcache;
2426 /* Unconditionally get tcache ptr on fast path. */
2427 tcache = tsd_tcachep_get(tsd);
2428 ifree(tsd, ptr, tcache, false);
2431 tcache = tcache_get(tsd);
2433 tcache = NULL;
2435 ifree(tsd, ptr, tcache, true);
2631 size_t usize, size_t alignment, bool zero, tcache_t *tcache, arena_t *arena,
2640 alignment, zero, tcache, arena);
2647 tcache, arena);
2655 size_t alignment, size_t *usize, bool zero, tcache_t *tcache,
2666 *usize, alignment, zero, tcache, arena, tctx);
2669 zero, tcache, arena);
2704 tcache_t *tcache;
2728 tcache = NULL;
2730 tcache = tcaches_get(tsd, MALLOCX_TCACHE_GET(flags));
2733 tcache = tcache_get(tsd);
2750 zero, tcache, arena, &alloc_ctx);
2756 zero, tcache, arena);
2965 tcache_t *tcache;
2967 /* Not allowed to be reentrant and specify a custom tcache. */
2970 tcache = NULL;
2972 tcache = tcaches_get(tsd, MALLOCX_TCACHE_GET(flags));
2976 tcache = tsd_tcachep_get(tsd);
2977 assert(tcache == tcache_get(tsd));
2980 tcache = tcache_get(tsd);
2982 tcache = NULL;
2990 ifree(tsd, ptr, tcache, false);
2992 ifree(tsd, ptr, tcache, true);
3027 tcache_t *tcache;
3029 /* Not allowed to be reentrant and specify a custom tcache. */
3032 tcache = NULL;
3034 tcache = tcaches_get(tsd, MALLOCX_TCACHE_GET(flags));
3038 tcache = tsd_tcachep_get(tsd);
3039 assert(tcache == tcache_get(tsd));
3042 tcache = tcache_get(tsd);
3044 tcache = NULL;
3052 isfree(tsd, ptr, usize, tcache, false);
3054 isfree(tsd, ptr, usize, tcache, true);