/external/jemalloc/msvc/projects/vc2015/test_threads/ |
test_threads.cpp | 21 je_malloc_conf = "narenas:3"; 22 int narenas = 0; local 23 size_t sz = sizeof(narenas); 24 je_mallctl("opt.narenas", &narenas, &sz, NULL, 0); 25 if (narenas != 3) { 26 printf("Error: unexpected number of arenas: %d\n", narenas); 32 static const int numThreads = narenas + 1, numAllocsMax = 25, numIter1 = 50, numIter2 = 50;
|
/external/jemalloc/test/unit/ |
mallctl.c | 166 TEST_MALLCTL_OPT(unsigned, narenas, always); 340 unsigned arena_old, arena_new, narenas; local 343 assert_d_eq(mallctl("arenas.narenas", &narenas, &sz, NULL, 0), 0, 345 assert_u_eq(narenas, opt_narenas, "Number of arenas incorrect"); 346 arena_new = narenas - 1; 424 unsigned narenas; local 432 assert_d_eq(mallctl("arenas.narenas", &narenas, &sz, NULL, 0), 0, 436 mib[1] = narenas; 444 unsigned narenas; local 506 unsigned narenas; local [all...] |
/external/jemalloc/src/ |
ctl.c | 268 {NAME("narenas"), CTL(opt_narenas)}, 351 {NAME("narenas"), CTL(arenas_narenas)}, 655 ctl_arena_stats_t *sstats = &ctl_stats.arenas[ctl_stats.narenas]; 669 if (arena_init(ctl_stats.narenas) == NULL) 673 astats = (ctl_arena_stats_t *)a0malloc((ctl_stats.narenas + 2) * 679 memcpy(astats, ctl_stats.arenas, (ctl_stats.narenas + 1) * 681 memset(&astats[ctl_stats.narenas + 1], 0, sizeof(ctl_arena_stats_t)); 682 if (ctl_arena_init(&astats[ctl_stats.narenas + 1])) { 689 memcpy(&tstats, &astats[ctl_stats.narenas], 691 memcpy(&astats[ctl_stats.narenas], 1556 unsigned narenas = ctl_stats.narenas; local 1800 unsigned narenas; local 1940 unsigned narenas; local [all...] |
stats.c | 503 OPT_WRITE_UNSIGNED(narenas) 541 CTL_GET("arenas.narenas", &uv, unsigned); 617 unsigned narenas; local 619 CTL_GET("arenas.narenas", &narenas, unsigned); 621 VARIABLE_ARRAY(bool, initialized, narenas); 625 isz = sizeof(bool) * narenas; 628 for (i = ninitialized = 0; i < narenas; i++) { 638 narenas, bins, large, huge); 644 unsigned narenas; local [all...] |
jemalloc.c | 394 narenas_total_set(unsigned narenas) 397 atomic_write_u(&narenas_total, narenas); 684 unsigned narenas, i; local 693 for (i = 0, narenas = narenas_total_get(); i < narenas; i++) { 1081 CONF_HANDLE_UNSIGNED(opt_narenas, "narenas", 1, 1352 malloc_printf("<jemalloc>: Reducing narenas to limit (%d)\n", 2659 unsigned i, narenas; local 2689 unsigned i, narenas; local 2714 unsigned i, narenas; local [all...] |
/external/jemalloc/include/jemalloc/internal/ |
ctl.h | 63 unsigned narenas; member in struct:ctl_stats_s 64 ctl_arena_stats_t *arenas; /* (narenas + 1) elements. */
|