Home
last modified time | relevance | path

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

/external/jemalloc/src/
Dctl.c535 ctl_arena_stats_t *sstats = &ctl_stats.arenas[ctl_stats.narenas]; in ctl_arena_refresh()
560 astats = (ctl_arena_stats_t *)imalloc((ctl_stats.narenas + 2) * in ctl_grow()
564 tarenas = (arena_t **)imalloc((ctl_stats.narenas + 1) * in ctl_grow()
572 memcpy(astats, ctl_stats.arenas, (ctl_stats.narenas + 1) * in ctl_grow()
574 memset(&astats[ctl_stats.narenas + 1], 0, sizeof(ctl_arena_stats_t)); in ctl_grow()
575 if (ctl_arena_init(&astats[ctl_stats.narenas + 1])) { in ctl_grow()
583 memcpy(&tstats, &astats[ctl_stats.narenas], in ctl_grow()
585 memcpy(&astats[ctl_stats.narenas], in ctl_grow()
586 &astats[ctl_stats.narenas + 1], sizeof(ctl_arena_stats_t)); in ctl_grow()
587 memcpy(&astats[ctl_stats.narenas + 1], &tstats, in ctl_grow()
[all …]
Dstats.c387 OPT_WRITE_SIZE_T(narenas) in stats_print()
492 unsigned narenas; in stats_print() local
494 CTL_GET("arenas.narenas", &narenas, unsigned); in stats_print()
496 VARIABLE_ARRAY(bool, initialized, narenas); in stats_print()
500 isz = sizeof(bool) * narenas; in stats_print()
503 for (i = ninitialized = 0; i < narenas; i++) { in stats_print()
513 narenas, bins, large); in stats_print()
519 unsigned narenas; in stats_print() local
523 CTL_GET("arenas.narenas", &narenas, unsigned); in stats_print()
525 VARIABLE_ARRAY(bool, initialized, narenas); in stats_print()
[all …]
Djemalloc.c209 unsigned narenas, i; in stats_print_atexit() local
218 for (i = 0, narenas = narenas_total_get(); i < narenas; i++) { in stats_print_atexit()
/external/jemalloc/test/unit/
Dmallctl.c164 TEST_MALLCTL_OPT(size_t, narenas, always); in TEST_BEGIN()
216 unsigned arena_old, arena_new, narenas; in TEST_BEGIN() local
219 assert_d_eq(mallctl("arenas.narenas", &narenas, &sz, NULL, 0), 0, in TEST_BEGIN()
221 assert_u_eq(narenas, opt_narenas, "Number of arenas incorrect"); in TEST_BEGIN()
222 arena_new = narenas - 1; in TEST_BEGIN()
233 unsigned narenas; in TEST_BEGIN() local
241 assert_d_eq(mallctl("arenas.narenas", &narenas, &sz, NULL, 0), 0, in TEST_BEGIN()
245 mib[1] = narenas; in TEST_BEGIN()
282 unsigned narenas; in TEST_BEGIN() local
283 size_t sz = sizeof(narenas); in TEST_BEGIN()
[all …]
/external/chromium_org/third_party/npapi/npspy/extern/nspr/
Dplarena.h68 PRUint32 narenas; /* number of arenas in pool */ member
168 #define PL_COUNT_ARENA(pool,op) ((pool)->stats.narenas op)
/external/jemalloc/include/jemalloc/internal/
Dctl.h60 unsigned narenas; member
Djemalloc_internal.h568 unsigned narenas; in narenas_total_get() local
571 narenas = narenas_total; in narenas_total_get()
574 return (narenas); in narenas_total_get()
Djemalloc_internal.h.in568 unsigned narenas; local
571 narenas = narenas_total;
574 return (narenas);