Searched defs:tcache (Results 1 - 5 of 5) sorted by relevance

/external/jemalloc/include/jemalloc/internal/
H A Dtcache.h9 * tcache pointers close to NULL are used to encode state information that is
52 /* Number of tcache allocation/deallocation events between incremental GCs. */
91 * array. During tcache initialization, the avail pointer in each
107 * Number of tcache bins. There are NBINS small-object bins, plus 0 or more
116 void tcache_event_hard(tcache_t *tcache);
117 void *tcache_alloc_small_hard(tcache_t *tcache, tcache_bin_t *tbin,
120 tcache_t *tcache);
122 tcache_t *tcache);
123 void tcache_arena_associate(tcache_t *tcache, arena_t *arena);
124 void tcache_arena_dissociate(tcache_t *tcache);
138 malloc_tsd_protos(JEMALLOC_ATTR(unused), tcache, tcache_t *) variable
166 tcache_t *tcache; local
198 tcache_t *tcache; local
225 tcache_t *tcache; local
243 tcache_event(tcache_t *tcache) argument
272 tcache_alloc_small(tcache_t *tcache, size_t size, bool zero) argument
[all...]
H A Darena.h1067 tcache_t *tcache; local
1073 if (try_tcache && (tcache = tcache_get(true)) != NULL)
1074 return (tcache_alloc_small(tcache, size, zero));
1081 * Initialize tcache after checking size in order to avoid
1082 * infinite recursion during tcache initialization.
1084 if (try_tcache && size <= tcache_maxclass && (tcache =
1086 return (tcache_alloc_large(tcache, size, zero));
1142 tcache_t *tcache; local
1152 if (try_tcache && (tcache = tcache_get(false)) != NULL) {
1156 tcache_dalloc_small(tcache, pt
[all...]
/external/jemalloc/src/
H A Dtcache.c7 malloc_tsd_data(, tcache, tcache_t *, NULL)
14 static unsigned stack_nelms; /* Total stack elms per tcache. */
28 tcache_event_hard(tcache_t *tcache) argument
30 size_t binind = tcache->next_gc_bin;
31 tcache_bin_t *tbin = &tcache->tbins[binind];
40 tbin->low_water + (tbin->low_water >> 2), tcache);
43 tbin->low_water + (tbin->low_water >> 2), tcache);
61 tcache->next_gc_bin++;
62 if (tcache->next_gc_bin == nhbins)
63 tcache
68 tcache_alloc_small_hard(tcache_t *tcache, tcache_bin_t *tbin, size_t binind) argument
82 tcache_bin_flush_small(tcache_bin_t *tbin, size_t binind, unsigned rem, tcache_t *tcache) argument
163 tcache_bin_flush_large(tcache_bin_t *tbin, size_t binind, unsigned rem, tcache_t *tcache) argument
242 tcache_arena_associate(tcache_t *tcache, arena_t *arena) argument
256 tcache_arena_dissociate(tcache_t *tcache) argument
269 tcache_get_hard(tcache_t *tcache, bool create) argument
311 tcache_t *tcache; local
356 tcache_destroy(tcache_t *tcache) argument
415 tcache_t *tcache = *(tcache_t **)arg; local
444 tcache_stats_merge(tcache_t *tcache, arena_t *arena) argument
[all...]
H A Dctl.c210 {NAME("tcache"), CHILD(named, tcache)}
222 {NAME("tcache"), CTL(config_tcache)},
242 {NAME("tcache"), CTL(opt_tcache)},
1215 tcache_t *tcache; local
1216 if ((uintptr_t)(tcache = *tcache_tsd_get()) >
1218 tcache_arena_dissociate(tcache);
1219 tcache_arena_associate(tcache, arena);
H A Djemalloc.c213 * individual threads do not lock when recording tcache stats
221 tcache_t *tcache; local
230 ql_foreach(tcache, &arena->tcache_ql, link) {
231 tcache_stats_merge(tcache, arena);
621 CONF_HANDLE_BOOL(opt_tcache, "tcache",
623 if (CONF_MATCH("tcache")) {
628 "tcache cannot be enabled "

Completed in 267 milliseconds