/external/jemalloc/test/integration/ |
thread_tcache_enabled.c | 19 if ((err = mallctl("thread.tcache.enabled", &e0, &sz, NULL, 0))) { 22 "ENOENT should only be returned if tcache is " 30 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 32 assert_true(e0, "tcache should be enabled"); 36 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, 38 assert_false(e0, "tcache should be disabled"); 41 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, 43 assert_true(e0, "tcache should be enabled"); 46 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, 48 assert_true(e0, "tcache should be enabled") [all...] |
iterate.c | 39 mallctl("thread.tcache.flush", NULL, NULL, NULL, 0); 69 mallctl("thread.tcache.flush", NULL, NULL, NULL, 0); 101 mallctl("thread.tcache.flush", NULL, NULL, NULL, 0);
|
/external/jemalloc/include/jemalloc/internal/ |
tcache.h | 10 * tcache pointers close to NULL are used to encode state information that is 58 /* Number of tcache allocation/deallocation events between incremental GCs. */ 103 * array. During tcache initialization, the avail pointer in each 109 /* Linkage for list of available (previously used) explicit tcache IDs. */ 112 tcache_t *tcache; member in union:tcaches_s::__anon14264 127 * Number of tcache bins. There are NBINS small-object bins, plus 0 or more 136 * Explicit tcaches, managed via the tcache.{create,flush,destroy} mallctls and 141 * explicit tcache is created without a disproportionate impact on memory usage. 146 void tcache_event_hard(tsd_t *tsd, tcache_t *tcache); 147 void *tcache_alloc_small_hard(tsd_t *tsd, arena_t *arena, tcache_t *tcache, 239 tcache_t *tcache; local [all...] |
huge.h | 13 tcache_t *tcache); 15 bool zero, tcache_t *tcache); 19 size_t usize, size_t alignment, bool zero, tcache_t *tcache); 24 void huge_dalloc(tsd_t *tsd, void *ptr, tcache_t *tcache);
|
stats.h | 26 * the bin. Note that tcache may allocate an object, then recycle it 35 * bin. This includes requests served by tcache, though tcache only 42 * currently cached by tcache. 46 /* Number of tcache fills from this bin. */ 49 /* Number of tcache flushes to this bin. */ 68 * the arena. Note that tcache may allocate an object, then recycle it 77 * This includes requests served by tcache, though tcache only 84 * cached by tcache [all...] |
jemalloc_internal.h | 170 * jemalloc can conceptually be broken into components (arena, tcache, etc.), 194 * t: tcache 381 #include "jemalloc/internal/tcache.h" 416 #include "jemalloc/internal/tcache.h" 503 #include "jemalloc/internal/tcache.h" 851 * Include portions of arena.h interleaved with tcache.h in order to resolve 857 #include "jemalloc/internal/tcache.h" 868 tcache_t *tcache, bool is_metadata, arena_t *arena, bool slow_path); 869 void *imalloct(tsd_t *tsd, size_t size, szind_t ind, tcache_t *tcache, 872 void *icalloct(tsd_t *tsd, size_t size, szind_t ind, tcache_t *tcache, [all...] |
jemalloc_internal.h.in | 170 * jemalloc can conceptually be broken into components (arena, tcache, etc.), 194 * t: tcache 381 #include "jemalloc/internal/tcache.h" 416 #include "jemalloc/internal/tcache.h" 503 #include "jemalloc/internal/tcache.h" 851 * Include portions of arena.h interleaved with tcache.h in order to resolve 857 #include "jemalloc/internal/tcache.h" 868 tcache_t *tcache, bool is_metadata, arena_t *arena, bool slow_path); 869 void *imalloct(tsd_t *tsd, size_t size, szind_t ind, tcache_t *tcache, 872 void *icalloct(tsd_t *tsd, size_t size, szind_t ind, tcache_t *tcache, [all...] |
arena.h | 547 bool zero, tcache_t *tcache); 549 size_t alignment, bool zero, tcache_t *tcache); 574 size_t size, size_t alignment, bool zero, tcache_t *tcache); 655 bool zero, tcache_t *tcache, bool slow_path); 658 void arena_dalloc(tsd_t *tsd, void *ptr, tcache_t *tcache, bool slow_path); 659 void arena_sdalloc(tsd_t *tsd, void *ptr, size_t size, tcache_t *tcache); [all...] |
/external/jemalloc/src/ |
tcache.c | 11 static unsigned stack_nelms; /* Total stack elms per tcache. */ 33 tcache_event_hard(tsd_t *tsd, tcache_t *tcache) 35 szind_t binind = tcache->next_gc_bin; 36 tcache_bin_t *tbin = &tcache->tbins[binind]; 44 tcache_bin_flush_small(tsd, tcache, tbin, binind, 49 - tbin->low_water + (tbin->low_water >> 2), tcache); 67 tcache->next_gc_bin++; 68 if (tcache->next_gc_bin == nhbins) 69 tcache->next_gc_bin = 0; 73 tcache_alloc_small_hard(tsd_t *tsd, arena_t *arena, tcache_t *tcache, 316 tcache_t *tcache; local 397 tcache_t *tcache; local 445 tcache_t *tcache; local [all...] |
huge.c | 35 tcache_t *tcache) 40 return (huge_palloc(tsd, arena, usize, chunksize, zero, tcache)); 45 bool zero, tcache_t *tcache) 61 CACHELINE, false, tcache, true, arena); 84 idalloctm(tsd, node, tcache, true, true); 92 idalloctm(tsd, node, tcache, true, true); 342 size_t alignment, bool zero, tcache_t *tcache) 346 return (huge_malloc(tsd, arena, usize, zero, tcache)); 347 return (huge_palloc(tsd, arena, usize, alignment, zero, tcache)); 352 size_t alignment, bool zero, tcache_t *tcache) [all...] |
jemalloc.c | 688 * individual threads do not lock when recording tcache stats 696 tcache_t *tcache; local 705 ql_foreach(tcache, &arena->tcache_ql, link) { 706 tcache_stats_merge(tcache, arena); 1142 CONF_HANDLE_BOOL(opt_tcache, "tcache", 1144 if (CONF_MATCH("tcache")) { 1149 "tcache cannot be enabled " 2104 tcache_t *tcache; local 2135 tcache_t *tcache; local 2273 tcache_t *tcache; local 2492 tcache_t *tcache; local 2507 ifree(tsd_fetch(), ptr, tcache, true); local 2526 tcache_t *tcache; local [all...] |
/external/jemalloc/test/unit/ |
decay.c | 42 * control tcache interactions (except by completely disabling tcache 105 * with tcache explicitly disabled. 160 * Test tcache fill/flush interactions for large and small size classes, 161 * using an explicit tcache. 170 assert_d_eq(mallctl("tcache.create", &tcache_ind, &sz, NULL, 0), 176 /* tcache fill. */ 182 "Expected ticker to tick during tcache fill " 184 /* tcache flush. */ 187 assert_d_eq(mallctl("tcache.flush", NULL, NULL [all...] |
mallctl.c | 139 TEST_MALLCTL_CONFIG(tcache, bool); 177 TEST_MALLCTL_OPT(bool, tcache, tcache); 178 TEST_MALLCTL_OPT(size_t, lg_tcache_max, tcache); 230 /* Deallocate p and q, but bypass the tcache for q. */ 234 /* Make sure that tcache-based allocation returns p, not q. */ 237 assert_ptr_eq(p0, p1, "Expected tcache to allocate cached region"); 261 assert_d_eq(mallctl("tcache.create", &tis[i], &sz, NULL, 0), 0, 265 /* Exercise tcache ID recycling. */ 267 assert_d_eq(mallctl("tcache.destroy", NULL, NULL, &tis[i] [all...] |
/external/jemalloc/include/jemalloc/ |
jemalloc_macros.h | 24 * Bias tcache index bits so that 0 encodes "automatic tcache management", and 1
|
jemalloc_macros.h.in | 24 * Bias tcache index bits so that 0 encodes "automatic tcache management", and 1
|
/system/core/libmemunreachable/include/memunreachable/ |
memunreachable.h | 64 // detect leaks may find the old data (for example in the jemalloc tcache)
|
/external/jemalloc/doc/ |
jemalloc.xml.in | 278 <listitem><para>Use the thread-specific cache (tcache) specified by 281 linkend="tcache.create"><mallctl>tcache.create</mallctl></link> 289 <listitem><para>Do not use a thread-specific cache (tcache). Unless 292 automatically managed tcache will be used under many circumstances. 512 <option>--disable-tcache</option> is specified during configuration, this [all...] |
/development/ndk/platforms/android-9/arch-mips/include/asm/ |
cpu-info.h | 56 struct cache_desc tcache; member in struct:cpuinfo_mips
|
/prebuilts/ndk/current/platforms/android-12/arch-mips/usr/include/asm/ |
cpu-info.h | 56 struct cache_desc tcache; member in struct:cpuinfo_mips
|
/prebuilts/ndk/current/platforms/android-13/arch-mips/usr/include/asm/ |
cpu-info.h | 56 struct cache_desc tcache; member in struct:cpuinfo_mips
|
/prebuilts/ndk/current/platforms/android-14/arch-mips/usr/include/asm/ |
cpu-info.h | 56 struct cache_desc tcache; member in struct:cpuinfo_mips
|
/prebuilts/ndk/current/platforms/android-15/arch-mips/usr/include/asm/ |
cpu-info.h | 56 struct cache_desc tcache; member in struct:cpuinfo_mips
|
/prebuilts/ndk/current/platforms/android-16/arch-mips/usr/include/asm/ |
cpu-info.h | 56 struct cache_desc tcache; member in struct:cpuinfo_mips
|
/prebuilts/ndk/current/platforms/android-17/arch-mips/usr/include/asm/ |
cpu-info.h | 56 struct cache_desc tcache; member in struct:cpuinfo_mips
|
/prebuilts/ndk/current/platforms/android-18/arch-mips/usr/include/asm/ |
cpu-info.h | 56 struct cache_desc tcache; member in struct:cpuinfo_mips
|