Home
last modified time | relevance | path

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

/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", &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.c655 ctl_arena_stats_t *sstats = &ctl_stats.arenas[ctl_stats.narenas]; in ctl_arena_refresh()
669 if (arena_init(ctl_stats.narenas) == NULL) in ctl_grow()
673 astats = (ctl_arena_stats_t *)a0malloc((ctl_stats.narenas + 2) * in ctl_grow()
679 memcpy(astats, ctl_stats.arenas, (ctl_stats.narenas + 1) * in ctl_grow()
681 memset(&astats[ctl_stats.narenas + 1], 0, sizeof(ctl_arena_stats_t)); in ctl_grow()
682 if (ctl_arena_init(&astats[ctl_stats.narenas + 1])) { in ctl_grow()
689 memcpy(&tstats, &astats[ctl_stats.narenas], in ctl_grow()
691 memcpy(&astats[ctl_stats.narenas], in ctl_grow()
692 &astats[ctl_stats.narenas + 1], sizeof(ctl_arena_stats_t)); in ctl_grow()
693 memcpy(&astats[ctl_stats.narenas + 1], &tstats, in ctl_grow()
[all …]
Dstats.c503 OPT_WRITE_UNSIGNED(narenas) in stats_print()
617 unsigned narenas; in stats_print() local
619 CTL_GET("arenas.narenas", &narenas, unsigned); in stats_print()
621 VARIABLE_ARRAY(bool, initialized, narenas); in stats_print()
625 isz = sizeof(bool) * narenas; in stats_print()
628 for (i = ninitialized = 0; i < narenas; i++) { in stats_print()
638 narenas, bins, large, huge); in stats_print()
644 unsigned narenas; in stats_print() local
648 CTL_GET("arenas.narenas", &narenas, unsigned); in stats_print()
650 VARIABLE_ARRAY(bool, initialized, narenas); in stats_print()
[all …]
Djemalloc.c394 narenas_total_set(unsigned narenas) in narenas_total_set() argument
397 atomic_write_u(&narenas_total, narenas); in narenas_total_set()
684 unsigned narenas, i; in stats_print_atexit() local
693 for (i = 0, narenas = narenas_total_get(); i < narenas; i++) { in stats_print_atexit()
2659 unsigned i, narenas; local
2671 for (i = 0, narenas = narenas_total_get(); i < narenas; i++) {
2689 unsigned i, narenas; local
2700 for (i = 0, narenas = narenas_total_get(); i < narenas; i++) {
2714 unsigned i, narenas; local
2721 for (i = 0, narenas = narenas_total_get(); i < narenas; i++) {
/external/jemalloc/test/unit/
Dmallctl.c166 TEST_MALLCTL_OPT(unsigned, narenas, always); in TEST_BEGIN()
340 unsigned arena_old, arena_new, narenas; in TEST_BEGIN() local
343 assert_d_eq(mallctl("arenas.narenas", &narenas, &sz, NULL, 0), 0, in TEST_BEGIN()
345 assert_u_eq(narenas, opt_narenas, "Number of arenas incorrect"); in TEST_BEGIN()
346 arena_new = narenas - 1; in TEST_BEGIN()
424 unsigned narenas; in TEST_BEGIN() local
432 assert_d_eq(mallctl("arenas.narenas", &narenas, &sz, NULL, 0), 0, in TEST_BEGIN()
436 mib[1] = narenas; in TEST_BEGIN()
444 unsigned narenas; in TEST_BEGIN() local
452 assert_d_eq(mallctl("arenas.narenas", &narenas, &sz, NULL, 0), 0, in TEST_BEGIN()
[all …]
/external/jemalloc/include/jemalloc/internal/
Dctl.h63 unsigned narenas; member
/external/jemalloc/
DChangeLog57 - Make opt.narenas unsigned rather than size_t. (@jasone)