Searched refs:narenas (Results 1 – 5 of 5) sorted by relevance
/external/jemalloc/src/ |
D | ctl.c | 627 ctl_arena_stats_t *sstats = &ctl_stats.arenas[ctl_stats.narenas]; in ctl_arena_refresh() 651 if (arena_init(ctl_stats.narenas) == NULL) in ctl_grow() 655 astats = (ctl_arena_stats_t *)a0malloc((ctl_stats.narenas + 2) * in ctl_grow() 661 memcpy(astats, ctl_stats.arenas, (ctl_stats.narenas + 1) * in ctl_grow() 663 memset(&astats[ctl_stats.narenas + 1], 0, sizeof(ctl_arena_stats_t)); in ctl_grow() 664 if (ctl_arena_init(&astats[ctl_stats.narenas + 1])) { in ctl_grow() 671 memcpy(&tstats, &astats[ctl_stats.narenas], in ctl_grow() 673 memcpy(&astats[ctl_stats.narenas], in ctl_grow() 674 &astats[ctl_stats.narenas + 1], sizeof(ctl_arena_stats_t)); in ctl_grow() 675 memcpy(&astats[ctl_stats.narenas + 1], &tstats, in ctl_grow() [all …]
|
D | stats.c | 486 OPT_WRITE_SIZE_T(narenas) in stats_print() 583 unsigned narenas; in stats_print() local 585 CTL_GET("arenas.narenas", &narenas, unsigned); in stats_print() 587 VARIABLE_ARRAY(bool, initialized, narenas); in stats_print() 591 isz = sizeof(bool) * narenas; in stats_print() 594 for (i = ninitialized = 0; i < narenas; i++) { in stats_print() 604 narenas, bins, large, huge); in stats_print() 610 unsigned narenas; in stats_print() local 614 CTL_GET("arenas.narenas", &narenas, unsigned); in stats_print() 616 VARIABLE_ARRAY(bool, initialized, narenas); in stats_print() [all …]
|
D | jemalloc.c | 420 unsigned narenas; in narenas_total_get() local 423 narenas = narenas_total; in narenas_total_get() 426 return (narenas); in narenas_total_get() 679 unsigned narenas, i; in stats_print_atexit() local 688 for (i = 0, narenas = narenas_total_get(); i < narenas; i++) { in stats_print_atexit()
|
/external/jemalloc/test/unit/ |
D | mallctl.c | 164 TEST_MALLCTL_OPT(size_t, narenas, always); in TEST_BEGIN() 336 unsigned arena_old, arena_new, narenas; in TEST_BEGIN() local 339 assert_d_eq(mallctl("arenas.narenas", &narenas, &sz, NULL, 0), 0, in TEST_BEGIN() 341 assert_u_eq(narenas, opt_narenas, "Number of arenas incorrect"); in TEST_BEGIN() 342 arena_new = narenas - 1; in TEST_BEGIN() 385 unsigned narenas; in TEST_BEGIN() local 393 assert_d_eq(mallctl("arenas.narenas", &narenas, &sz, NULL, 0), 0, in TEST_BEGIN() 397 mib[1] = narenas; in TEST_BEGIN() 447 unsigned narenas; in TEST_BEGIN() local 448 size_t sz = sizeof(narenas); in TEST_BEGIN() [all …]
|
/external/jemalloc/include/jemalloc/internal/ |
D | ctl.h | 59 unsigned narenas; member
|