Home
last modified time | relevance | path

Searched refs:tcache (Results 1 – 22 of 22) sorted by relevance

/freebsd/contrib/jemalloc/src/
H A Dtcache.c82 tcache->next_gc_bin++; in tcache_event_hard()
352 &tcache->cache_bin_array_descriptor, tcache->bins_small, in tcache_arena_associate()
385 tcache->arena = NULL; in tcache_arena_dissociate()
414 tcache->arena = NULL; in tcache_init()
487 tcache_t *tcache; in tcache_create_explicit() local
508 return tcache; in tcache_create_explicit()
672 elm->tcache = tcache; in tcaches_create()
676 elm->tcache = tcache; in tcaches_create()
695 tcache_t *tcache = elm->tcache; in tcaches_elm_remove() local
699 elm->tcache = NULL; in tcaches_elm_remove()
[all …]
H A Djemalloc.c1918 tcache_t *tcache; in imalloc_no_sample() local
1931 tcache = NULL; in imalloc_no_sample()
2780 tcache = NULL; in free_default()
3209 tcache_t *tcache; in je_rallocx() local
3233 tcache = NULL; in je_rallocx()
3482 tcache_t *tcache; in je_dallocx() local
3487 tcache = NULL; in je_dallocx()
3499 tcache = NULL; in je_dallocx()
3543 tcache_t *tcache; in sdallocx_default() local
3548 tcache = NULL; in sdallocx_default()
[all …]
H A Dhook.c133 tcache_t *tcache = tsdn_tcachep_get(tsdn); in hook_reentrantp() local
134 if (tcache != NULL) { in hook_reentrantp()
135 return &tcache->in_hook; in hook_reentrantp()
H A Dtsd.c77 ql_foreach(tsd_list, &tsd_nominal_tsds, TSD_MANGLE(tcache).tsd_link) { in tsd_in_nominal_list()
91 ql_elm_new(tsd, TSD_MANGLE(tcache).tsd_link); in tsd_add_nominal()
93 ql_tail_insert(&tsd_nominal_tsds, tsd, TSD_MANGLE(tcache).tsd_link); in tsd_add_nominal()
102 ql_remove(&tsd_nominal_tsds, tsd, TSD_MANGLE(tcache).tsd_link); in tsd_remove_nominal()
115 ql_foreach(remote_tsd, &tsd_nominal_tsds, TSD_MANGLE(tcache).tsd_link) { in tsd_force_recompute()
H A Darena.c1533 bool zero, tcache_t *tcache) { in arena_palloc() argument
1541 zero, tcache, true); in arena_palloc()
1614 tcache_dalloc_large(tsdn_tsd(tsdn), tcache, ptr, in arena_dalloc_promoted()
1790 zero, tcache, true); in arena_ralloc_move_helper()
1824 alignment, zero, tcache, hook_args); in arena_ralloc()
1832 zero, tcache); in arena_ralloc()
2269 tcache_t *tcache = tcache_get(tsdn_tsd(tsdn)); in arena_postfork_child() local
2270 if (tcache != NULL && tcache->arena == arena) { in arena_postfork_child()
2271 ql_elm_new(tcache, link); in arena_postfork_child()
2274 &tcache->cache_bin_array_descriptor, in arena_postfork_child()
[all …]
H A Dlarge.c275 size_t alignment, bool zero, tcache_t *tcache, in large_ralloc() argument
313 isdalloct(tsdn, extent_addr_get(extent), oldusize, tcache, NULL, true); in large_ralloc()
H A Dctl.c630 {NAME("tcache"), CHILD(named, tcache)},
/freebsd/contrib/jemalloc/include/jemalloc/internal/
H A Dtcache_inlines.h31 tcache_event(tsd_t *tsd, tcache_t *tcache) { in tcache_event() argument
37 tcache_event_hard(tsd, tcache); in tcache_event()
50 bin = tcache_small_bin_get(tcache, binind); in tcache_alloc_small()
97 tcache->prof_accumbytes += usize; in tcache_alloc_small()
99 tcache_event(tsd, tcache); in tcache_alloc_small()
155 tcache->prof_accumbytes += usize; in tcache_alloc_large()
159 tcache_event(tsd, tcache); in tcache_alloc_large()
185 tcache_event(tsd, tcache); in tcache_dalloc_small()
212 tcache_event(tsd, tcache); in tcache_dalloc_large()
218 if (unlikely(elm->tcache == NULL)) { in tcaches_get()
[all …]
H A Djemalloc_internal_inlines_c.h46 assert(!is_internal || tcache == NULL); in iallocztm()
68 tcache_t *tcache, bool is_internal, arena_t *arena) { in ipallocztm() argument
73 assert(!is_internal || tcache == NULL); in ipallocztm()
88 tcache_t *tcache, arena_t *arena) { in ipalloct() argument
107 assert(!is_internal || tcache == NULL); in idalloctm()
116 assert(tcache == NULL); in idalloctm()
118 arena_dalloc(tsdn, ptr, tcache, alloc_ctx, slow_path); in idalloctm()
147 p = ipalloct(tsdn, usize, alignment, zero, tcache, arena); in iralloct_realign()
162 isdalloct(tsdn, ptr, oldsize, tcache, NULL, true); in iralloct_realign()
189 zero, tcache, arena, hook_args); in iralloct()
[all …]
H A Dtcache_externs.h29 void tcache_event_hard(tsd_t *tsd, tcache_t *tcache);
30 void *tcache_alloc_small_hard(tsdn_t *tsdn, arena_t *arena, tcache_t *tcache,
32 void tcache_bin_flush_small(tsd_t *tsd, tcache_t *tcache, cache_bin_t *tbin,
35 unsigned rem, tcache_t *tcache);
36 void tcache_arena_reassociate(tsdn_t *tsdn, tcache_t *tcache,
40 void tcache_stats_merge(tsdn_t *tsdn, tcache_t *tcache, arena_t *arena);
45 void tcache_arena_associate(tsdn_t *tsdn, tcache_t *tcache, arena_t *arena);
H A Darena_inlines_b.h160 tcache_t *tcache, bool slow_path) { in arena_malloc() argument
161 assert(!tsdn_null(tsdn) || tcache == NULL); in arena_malloc()
163 if (likely(tcache != NULL)) { in arena_malloc()
166 tcache, size, ind, zero, slow_path); in arena_malloc()
170 tcache, size, ind, zero, slow_path); in arena_malloc()
274 arena_dalloc_promoted(tsdn, ptr, tcache, slow_path); in arena_dalloc_large()
286 arena_dalloc(tsdn_t *tsdn, void *ptr, tcache_t *tcache, in arena_dalloc() argument
288 assert(!tsdn_null(tsdn) || tcache == NULL); in arena_dalloc()
291 if (unlikely(tcache == NULL)) { in arena_dalloc()
373 assert(!tsdn_null(tsdn) || tcache == NULL); in arena_sdalloc()
[all …]
H A Djemalloc_internal_inlines_b.h25 tcache_t *tcache = tcache_get(tsd); in arena_choose_impl() local
26 if (tcache->arena != NULL) { in arena_choose_impl()
28 assert(tcache->arena == in arena_choose_impl()
30 if (tcache->arena != ret) { in arena_choose_impl()
32 tcache, ret); in arena_choose_impl()
35 tcache_arena_associate(tsd_tsdn(tsd), tcache, in arena_choose_impl()
H A Darena_inlines_a.h49 tcache_t *tcache = tcache_get(tsd); in percpu_arena_update() local
50 if (tcache != NULL) { in percpu_arena_update()
51 tcache_arena_reassociate(tsd_tsdn(tsd), tcache, in percpu_arena_update()
H A Djemalloc_internal_inlines_a.h112 tcache_small_bin_get(tcache_t *tcache, szind_t binind) { in tcache_small_bin_get() argument
114 return &tcache->bins_small[binind]; in tcache_small_bin_get()
118 tcache_large_bin_get(tcache_t *tcache, szind_t binind) { in tcache_large_bin_get() argument
120 return &tcache->bins_large[binind - SC_NBINS]; in tcache_large_bin_get()
H A Darena_externs.h51 void arena_tcache_fill_small(tsdn_t *tsdn, arena_t *arena, tcache_t *tcache,
62 size_t alignment, bool zero, tcache_t *tcache);
64 void arena_dalloc_promoted(tsdn_t *tsdn, void *ptr, tcache_t *tcache,
72 size_t size, size_t alignment, bool zero, tcache_t *tcache,
H A Dtcache_structs.h65 tcache_t *tcache; member
H A Dlarge_externs.h12 size_t alignment, bool zero, tcache_t *tcache,
H A Dtsd.h79 O(tcache, tcache_t, tcache_t) \
/freebsd/contrib/tcsh/
H A Dtc.func.c1446 } *tcache = NULL; variable
1536 if (tcache == NULL) in gettilde()
1541 for (bp1 = tcache, bp2 = tcache + tlength; bp1 < bp2;) { in gettilde()
1563 tcache[tlength].home = hd; in gettilde()
1570 tcache = xrealloc(tcache, tsize * sizeof(struct tildecache)); in gettilde()
1590 xfree(tcache[i].home); in getusername()
1591 xfree(tcache[i].user); in getusername()
1593 xfree(tcache); in getusername()
1596 tcache = NULL; in getusername()
1607 if ((Strncmp(p, tcache[i].home, (j = tcache[i].hlen)) == 0) && in getusername()
[all …]
/freebsd/contrib/jemalloc/
H A DChangeLog120 - Fix tcache.flush. (@interwq)
431 - Remove --disable-tcache. (@jasone)
444 + config.tcache
843 - Add support for explicit tcaches. The "tcache.create", "tcache.flush", and
844 "tcache.destroy" mallctls control tcache lifetime and flushing, and the
846 control which tcache is used for each operation.
1214 - Add the "thread.tcache.enabled" mallctl.
1226 - Rename the "tcache.flush" mallctl to "thread.tcache.flush".
1274 - Fix build issues for --disable-tcache.
1309 - Fix a build error for --disable-tcache.
[all …]
H A DFREEBSD-diffs384 - tcache_t *tcache;
387 - tcache = tcache_get(tsd);
389 - tcache = NULL;
395 - ifree(tsd, ptr, tcache, true);
/freebsd/lib/libc/stdlib/malloc/jemalloc/
H A DMakefile.inc4 prng.c prof.c rtree.c safety_check.c sc.c stats.c sz.c tcache.c \