Home
last modified time | relevance | path

Searched refs:narenas (Results 1 – 19 of 19) sorted by relevance

/external/jemalloc_new/msvc/test_threads/
Dtest_threads.cpp21 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/msvc/projects/vc2015/test_threads/
Dtest_threads.cpp22 int narenas = 0; in test_threads() local
23 size_t sz = sizeof(narenas); in test_threads()
24 je_mallctl("opt.narenas", (void *)&narenas, &sz, NULL, 0); in test_threads()
25 if (narenas != 3) { in test_threads()
26 printf("Error: unexpected number of arenas: %d\n", narenas); in test_threads()
32 static const int numThreads = narenas + 1, numAllocsMax = 25, numIter1 = 50, numIter2 = 50; in test_threads()
/external/jemalloc/src/
Dctl.c662 ctl_arena_stats_t *sstats = &ctl_stats.arenas[ctl_stats.narenas]; in ctl_arena_refresh()
676 if (arena_init(tsdn, ctl_stats.narenas) == NULL) in ctl_grow()
680 astats = (ctl_arena_stats_t *)a0malloc((ctl_stats.narenas + 2) * in ctl_grow()
686 memcpy(astats, ctl_stats.arenas, (ctl_stats.narenas + 1) * in ctl_grow()
688 memset(&astats[ctl_stats.narenas + 1], 0, sizeof(ctl_arena_stats_t)); in ctl_grow()
689 if (ctl_arena_init(&astats[ctl_stats.narenas + 1])) { in ctl_grow()
696 memcpy(&tstats, &astats[ctl_stats.narenas], in ctl_grow()
698 memcpy(&astats[ctl_stats.narenas], in ctl_grow()
699 &astats[ctl_stats.narenas + 1], sizeof(ctl_arena_stats_t)); in ctl_grow()
700 memcpy(&astats[ctl_stats.narenas + 1], &tstats, in ctl_grow()
[all …]
Dstats.c727 OPT_WRITE_UNSIGNED(narenas, ",") in stats_general_print()
991 unsigned narenas; in stats_print_helper() local
998 CTL_GET("arenas.narenas", &narenas, unsigned); in stats_print_helper()
1000 VARIABLE_ARRAY(bool, initialized, narenas); in stats_print_helper()
1004 isz = sizeof(bool) * narenas; in stats_print_helper()
1007 for (i = ninitialized = 0; i < narenas; i++) { in stats_print_helper()
1023 narenas, bins, large, huge); in stats_print_helper()
1032 for (i = j = 0; i < narenas; i++) { in stats_print_helper()
Djemalloc.c416 narenas_total_set(unsigned narenas) in narenas_total_set() argument
419 atomic_write_u(&narenas_total, narenas); in narenas_total_set()
752 unsigned narenas, i; in stats_print_atexit() local
763 for (i = 0, narenas = narenas_total_get(); i < narenas; i++) { in stats_print_atexit()
2826 unsigned i, j, narenas; local
2837 narenas = narenas_total_get();
2846 for (j = 0; j < narenas; j++) {
2865 for (i = 0; i < narenas; i++) {
2881 unsigned i, narenas; local
2894 for (i = 0, narenas = narenas_total_get(); i < narenas; i++) {
[all …]
/external/jemalloc/test/unit/
Dmallctl.c172 TEST_MALLCTL_OPT(unsigned, narenas, always); in TEST_BEGIN()
346 unsigned arena_old, arena_new, narenas; in TEST_BEGIN() local
349 assert_d_eq(mallctl("arenas.narenas", (void *)&narenas, &sz, NULL, 0), in TEST_BEGIN()
351 assert_u_eq(narenas, opt_narenas, "Number of arenas incorrect"); in TEST_BEGIN()
352 arena_new = narenas - 1; in TEST_BEGIN()
433 unsigned narenas; in TEST_BEGIN() local
441 assert_d_eq(mallctl("arenas.narenas", (void *)&narenas, &sz, NULL, 0), in TEST_BEGIN()
445 mib[1] = narenas; in TEST_BEGIN()
453 unsigned narenas; in TEST_BEGIN() local
461 assert_d_eq(mallctl("arenas.narenas", (void *)&narenas, &sz, NULL, 0), in TEST_BEGIN()
[all …]
/external/jemalloc_new/test/unit/
Dmallctl.c164 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/src/
Dctl.c610 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 …]
Djemalloc.c296 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 …]
Dstats.c1154 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()
Dbackground_thread.c290 unsigned narenas = narenas_total_get();
292 for (unsigned i = ind; i < narenas; i += max_background_threads) {
/external/jemalloc_new/test/integration/
Dextent.c103 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/
DTUNING.md49 * [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`
DChangeLog511 - Fix malloc_stats_print() to print opt.narenas correctly. (@jasone)
566 - Make opt.narenas unsigned rather than size_t. (@jasone)
/external/python/cpython2/Objects/
Dobmalloc.c1817 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/include/jemalloc/internal/
Dctl.h65 unsigned narenas; member
/external/python/cpython3/Objects/
Dobmalloc.c2538 size_t narenas = 0; in _PyObject_DebugMallocStats() local
2560 narenas += 1; in _PyObject_DebugMallocStats()
2596 assert(narenas == narenas_currently_allocated); in _PyObject_DebugMallocStats()
2626 (void)printone(out, "# arenas reclaimed", ntimes_arena_allocated - narenas); in _PyObject_DebugMallocStats()
2628 (void)printone(out, "# arenas allocated current", narenas); in _PyObject_DebugMallocStats()
2632 narenas, ARENA_SIZE); in _PyObject_DebugMallocStats()
2633 (void)printone(out, buf, narenas * ARENA_SIZE); in _PyObject_DebugMallocStats()
/external/jemalloc_new/include/jemalloc/internal/
Dctl.h81 unsigned narenas; member
/external/jemalloc/
DChangeLog137 - Fix malloc_stats_print() to print opt.narenas correctly. (@jasone)
192 - Make opt.narenas unsigned rather than size_t. (@jasone)