/external/jemalloc_new/msvc/test_threads/ |
D | test_threads.cpp | 21 int narenas = 0; in test_threads() local 22 size_t sz = sizeof(narenas); in test_threads() 23 je_mallctl("opt.narenas", (void *)&narenas, &sz, NULL, 0); in test_threads() 24 if (narenas != 3) { in test_threads() 25 printf("Error: unexpected number of arenas: %d\n", narenas); in test_threads() 31 static const int numThreads = narenas + 1, numAllocsMax = 25, numIter1 = 50, numIter2 = 50; in test_threads()
|
/external/jemalloc_new/test/unit/ |
D | mallctl.c | 164 TEST_MALLCTL_OPT(unsigned, narenas, always); in TEST_BEGIN() 333 unsigned old_arena_ind, new_arena_ind, narenas; in TEST_BEGIN() local 341 assert_d_eq(mallctl("arenas.narenas", (void *)&narenas, &sz, NULL, 0), in TEST_BEGIN() 343 assert_u_eq(narenas, opt_narenas, "Number of arenas incorrect"); in TEST_BEGIN() 346 new_arena_ind = narenas - 1; in TEST_BEGIN() 369 unsigned narenas, i; in TEST_BEGIN() local 375 sz = sizeof(narenas); in TEST_BEGIN() 376 assert_d_eq(mallctl("arenas.narenas", (void *)&narenas, &sz, NULL, 0), in TEST_BEGIN() 381 for (i = 0; i < narenas; i++) { in TEST_BEGIN() 471 unsigned narenas; in TEST_BEGIN() local [all …]
|
/external/jemalloc_new/test/integration/ |
D | extent.c | 103 unsigned narenas; in test_manual_hook_auto_arena() local 113 assert_d_eq(mallctl("opt.narenas", (void *)&narenas, &sz, NULL, 0), in test_manual_hook_auto_arena() 115 if (narenas == 1) { in test_manual_hook_auto_arena()
|
/external/jemalloc_new/src/ |
D | ctl.c | 610 if (compat && i == ctl_arenas->narenas) { in arenas_i2a_impl() 618 } else if (validate && i >= ctl_arenas->narenas) { in arenas_i2a_impl() 626 assert(i < ctl_arenas->narenas || (!validate && i == in arenas_i2a_impl() 627 ctl_arenas->narenas)); in arenas_i2a_impl() 894 arena_ind = ctl_arenas->narenas; in ctl_arena_init() 907 if (arena_ind == ctl_arenas->narenas) { in ctl_arena_init() 908 ctl_arenas->narenas++; in ctl_arena_init() 928 VARIABLE_ARRAY(arena_t *, tarenas, ctl_arenas->narenas); in ctl_refresh() 936 for (i = 0; i < ctl_arenas->narenas; i++) { in ctl_refresh() 940 for (i = 0; i < ctl_arenas->narenas; i++) { in ctl_refresh() [all …]
|
D | jemalloc.c | 296 narenas_total_set(unsigned narenas) { in narenas_total_set() argument 297 atomic_store_u(&narenas_total, narenas, ATOMIC_RELEASE); in narenas_total_set() 636 unsigned narenas, i; in stats_print_atexit() local 647 for (i = 0, narenas = narenas_total_get(); i < narenas; i++) { in stats_print_atexit() 3213 unsigned i, j, narenas; local 3225 narenas = narenas_total_get(); 3241 for (j = 0; j < narenas; j++) { 3286 unsigned i, narenas; local 3299 for (i = 0, narenas = narenas_total_get(); i < narenas; i++) { 3318 unsigned i, narenas; local [all …]
|
D | stats.c | 1154 unsigned narenas; in stats_print_helper() local 1158 CTL_GET("arenas.narenas", &narenas, unsigned); in stats_print_helper() 1162 VARIABLE_ARRAY(bool, initialized, narenas); in stats_print_helper() 1167 for (i = ninitialized = 0; i < narenas; i++) { in stats_print_helper() 1204 for (i = j = 0; i < narenas; i++) { in stats_print_helper()
|
D | background_thread.c | 290 unsigned narenas = narenas_total_get(); 292 for (unsigned i = ind; i < narenas; i += max_background_threads) {
|
/external/jemalloc_new/ |
D | TUNING.md | 49 * [narenas](http://jemalloc.net/jemalloc.3.html#opt.narenas) 86 `narenas:1,lg_tcache_max:13` combined with shorter decay time (decreased 93 `narenas:1,tcache:false,dirty_decay_ms:0,muzzy_decay_ms:0`
|
D | ChangeLog | 511 - Fix malloc_stats_print() to print opt.narenas correctly. (@jasone) 566 - Make opt.narenas unsigned rather than size_t. (@jasone)
|
/external/python/cpython2/Objects/ |
D | obmalloc.c | 1817 size_t narenas = 0; in _PyObject_DebugMallocStats() local 1839 narenas += 1; in _PyObject_DebugMallocStats() 1874 assert(narenas == narenas_currently_allocated); in _PyObject_DebugMallocStats() 1904 (void)printone("# arenas reclaimed", ntimes_arena_allocated - narenas); in _PyObject_DebugMallocStats() 1906 (void)printone("# arenas allocated current", narenas); in _PyObject_DebugMallocStats() 1910 narenas, ARENA_SIZE); in _PyObject_DebugMallocStats() 1911 (void)printone(buf, narenas * ARENA_SIZE); in _PyObject_DebugMallocStats()
|
/external/jemalloc_new/include/jemalloc/internal/ |
D | ctl.h | 81 unsigned narenas; member
|
/external/python/cpython3/Objects/ |
D | obmalloc.c | 2623 size_t narenas = 0; in _PyObject_DebugMallocStats() local 2645 narenas += 1; in _PyObject_DebugMallocStats() 2681 assert(narenas == narenas_currently_allocated); in _PyObject_DebugMallocStats() 2714 (void)printone(out, "# arenas reclaimed", ntimes_arena_allocated - narenas); in _PyObject_DebugMallocStats() 2716 (void)printone(out, "# arenas allocated current", narenas); in _PyObject_DebugMallocStats() 2720 narenas, ARENA_SIZE); in _PyObject_DebugMallocStats() 2721 (void)printone(out, buf, narenas * ARENA_SIZE); in _PyObject_DebugMallocStats()
|