| /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/ |
| print-internal-string.c | 23 static char arena[256]; variable 26 will always return the same pointer (to arena). This does mean we can't 28 simple test. On each malloc call the contents of arena are reset, which 35 /* Reset the contents of arena, and ensure there's a null-character at 37 memset (arena, 'X', sizeof (arena)); 38 arena [sizeof (arena) - 1] = '\0'; 39 if (size > sizeof (arena)) 41 return arena; [all...] |
| /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/ |
| print-internal-string.c | 23 static char arena[256]; variable 26 will always return the same pointer (to arena). This does mean we can't 28 simple test. On each malloc call the contents of arena are reset, which 35 /* Reset the contents of arena, and ensure there's a null-character at 37 memset (arena, 'X', sizeof (arena)); 38 arena [sizeof (arena) - 1] = '\0'; 39 if (size > sizeof (arena)) 41 return arena; [all...] |
| /src/external/bsd/jemalloc/dist/src/ |
| inspect.c | 56 arena_t *arena = (arena_t *)atomic_load_p( local 58 assert(arena != NULL); 60 bin_t *bin = arena_get_bin(arena, szind, binshard);
|
| ehooks.c | 22 extent_alloc_core(tsdn_t *tsdn, arena_t *arena, void *new_addr, size_t size, 31 extent_alloc_dss(tsdn, arena, new_addr, size, alignment, zero, 42 extent_alloc_dss(tsdn, arena, new_addr, size, alignment, zero, 54 arena_t *arena = arena_get(tsdn, arena_ind, false); local 55 /* NULL arena indicates arena_create. */ 56 assert(arena != NULL || alignment == HUGEPAGE); 57 dss_prec_t dss = (arena == NULL) ? dss_prec_disabled : 58 (dss_prec_t)atomic_load_u(&arena->dss_prec, ATOMIC_RELAXED); 59 void *ret = extent_alloc_core(tsdn, arena, new_addr, size, alignment,
|
| large.c | 14 large_malloc(tsdn_t *tsdn, arena_t *arena, size_t usize, bool zero) { 17 return large_palloc(tsdn, arena, usize, CACHELINE, zero); 21 large_palloc(tsdn_t *tsdn, arena_t *arena, size_t usize, size_t alignment, 27 assert(!tsdn_null(tsdn) || arena != NULL); 35 arena = arena_choose_maybe_huge(tsdn_tsd(tsdn), arena, usize); 37 if (unlikely(arena == NULL) || (edata = arena_extent_alloc_large(tsdn, 38 arena, usize, alignment, zero)) == NULL) { 43 if (!arena_is_auto(arena)) { 45 malloc_mutex_lock(tsdn, &arena->large_mtx) 56 arena_t *arena = arena_get_from_edata(edata); local 85 arena_t *arena = arena_get_from_edata(edata); local 271 arena_t *arena = arena_get_from_edata(edata); local [all...] |
| /src/external/bsd/jemalloc/dist/include/jemalloc/internal/ |
| tcache_structs.h | 21 /* Lets us track all the tcaches in an arena. */ 25 * The descriptor lets the arena find our cache bins without seeing the 31 /* The arena this tcache is associated with. */ 32 arena_t *arena; member in struct:tcache_slow_s
|
| /src/external/bsd/jemalloc/include/jemalloc/internal/ |
| tcache_structs.h | 21 /* Lets us track all the tcaches in an arena. */ 25 * The descriptor lets the arena find our cache bins without seeing the 31 /* The arena this tcache is associated with. */ 32 arena_t *arena; member in struct:tcache_slow_s
|
| /src/external/bsd/jemalloc.old/dist/include/jemalloc/internal/ |
| tcache_structs.h | 30 /* Lets us track all the tcaches in an arena. */ 33 * The descriptor lets the arena find our cache bins without seeing the 39 /* The arena this tcache is associated with. */ 40 arena_t *arena; member in struct:tcache_s
|
| /src/external/bsd/jemalloc.old/include/jemalloc/internal/ |
| tcache_structs.h | 30 /* Lets us track all the tcaches in an arena. */ 33 * The descriptor lets the arena find our cache bins without seeing the 39 /* The arena this tcache is associated with. */ 40 arena_t *arena; member in struct:tcache_s
|
| /src/external/bsd/jemalloc/dist/test/unit/ |
| oversize_threshold.c | 6 arena_mallctl(const char *mallctl_str, unsigned arena, void *oldp, 10 malloc_snprintf(buf, sizeof(buf), mallctl_str, arena); 22 unsigned arena; local 23 size_t arena_sz = sizeof(arena); 24 err = mallctl("arenas.create", (void *)&arena, &arena_sz, NULL, 0); 25 expect_d_eq(0, err, "Arena creation failed"); 29 arena_mallctl("arena.%u.oversize_threshold", arena, NULL, NULL, 34 arena_mallctl("arena.%u.oversize_threshold", arena, &old_threshold 75 unsigned arena; local [all...] |
| san_bump.c | 16 assert_u_ne(arena_ind, UINT_MAX, "Failed to create an arena"); 18 arena_t *arena = arena_get(tsdn, arena_ind, false); local 19 pac_t *pac = &arena->pa_shard.pac; 28 "Edata was assigned an incorrect arena id"); 49 "Edata was assigned an incorrect arena id"); 81 assert_u_ne(arena_ind, UINT_MAX, "Failed to create an arena"); 83 arena_t *arena = arena_get(tsdn, arena_ind, false); local 84 pac_t *pac = &arena->pa_shard.pac; 90 "Edata was assigned an incorrect arena id");
|
| batch_alloc.c | 24 arena_t *arena, unsigned nregs) { 41 expect_ptr_eq(iaalloc(tsd_tsdn(tsd), p), arena, ""); 88 arena_t *arena; local 90 arena = arena_get(tsd_tsdn(tsd), MALLOCX_ARENA_GET(arena_flag), 93 arena = arena_choose(tsd, NULL); 95 assert(arena != NULL); 131 arena, nregs);
|
| binshard.c | 11 unsigned arena, i; local 14 sz = sizeof(arena); 15 /* Remote arena. */ 16 expect_d_eq(mallctl("arenas.create", (void *)&arena, &sz, NULL, 0), 0, 19 mem[i] = mallocx(1, MALLOCX_TCACHE_NONE | MALLOCX_ARENA(arena));
|
| retained.c | 30 expect_d_eq(mallctlnametomib("arena.0.destroy", mib, &miblen), 0, 83 * Allocate. The main thread will reset the arena, so there's 145 arena_t *arena = arena_get(tsdn_fetch(), arena_ind, false); local 149 arena->pa_shard.pac.exp_grow.next; pind++) { 167 * Clean up arena. Destroying and recreating the arena 173 "Unexpected arena index");
|
| /src/lib/libpthread/ |
| pthread_tsd.c | 90 char *arena; local 117 arena = mmap(NULL, alen, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0); 118 if (arena == MAP_FAILED) { 123 pthread__tsd_list = (void *)arena; 124 arena += sizeof(*pthread__tsd_list) * pthread_keys_max; 125 pthread__tsd_destructors = (void *)arena; 126 arena += sizeof(*pthread__tsd_destructors) * pthread_keys_max; 127 return arena;
|
| /src/external/gpl3/gcc.old/dist/libstdc++-v3/libsupc++/ |
| eh_alloc.cc | 109 // The arena itself - we need to keep track of these only 111 char *arena; member in class:__anon17203::pool 119 // Allocate the arena - we could add a GLIBCXX_EH_ARENA_SIZE environment 123 arena = (char *)malloc (arena_size); 124 if (!arena) 132 // Populate the free-list with a single entry covering the whole arena 133 first_free_entry = reinterpret_cast <free_entry *> (arena); 258 return (p > arena 259 && p < arena + arena_size); 270 if (emergency_pool.arena) [all...] |
| /src/external/bsd/jemalloc/dist/test/integration/ |
| extent.c | 29 expect_d_eq(mallctlnametomib("arena.0.purge", purge_mib, &purge_miblen), 46 0, "Unexpected arena.%u.purge error", arena_ind); 69 0, "Unexpected arena.%u.purge error", arena_ind); 109 /* Install custom extent hooks on arena 1 (might not be initialized). */ 111 expect_d_eq(mallctlnametomib("arena.0.extent_hooks", hooks_mib, 123 "Expected auto arena 1 created only once."); 144 expect_d_eq(mallctlnametomib("arena.0.extent_hooks", hooks_mib, 237 unsigned arena, arena1; local 245 (void *)&arena, &sz, &config, sizeof(arena_config_t)), 0, 251 ptr = mallocx(42, MALLOCX_ARENA(arena) | MALLOCX_TCACHE_NONE) [all...] |
| mallocx.c | 50 expect_d_eq(mallctl("arena.0.purge", NULL, NULL, NULL, 0), 0, 86 unsigned arena; local 88 expect_d_eq(mallctl("arenas.create", (void *)&arena, &sz, NULL, 0), 0, 95 void *ptr = mallocx(large_sz, MALLOCX_ARENA(arena) 205 "not working with percpu arena.");
|
| smallocx.c | 70 expect_d_eq(mallctl("arena.0.purge", NULL, NULL, NULL, 0), 0, 106 unsigned arena; local 108 expect_d_eq(mallctl("arenas.create", (void *)&arena, &sz, NULL, 0), 0, 116 = smallocx(large_sz, MALLOCX_ARENA(arena) | MALLOCX_TCACHE_NONE); 119 nallocx(large_sz, MALLOCX_ARENA(arena) | MALLOCX_TCACHE_NONE), 238 "not working with percpu arena.");
|
| /src/external/bsd/jemalloc.old/dist/test/unit/ |
| retained.c | 29 assert_d_eq(mallctlnametomib("arena.0.destroy", mib, &miblen), 0, 82 * Allocate. The main thread will reset the arena, so there's 138 arena_t *arena = arena_get(tsdn_fetch(), arena_ind, false); local 142 arena->extent_grow_next; pind++) { 160 * Clean up arena. Destroying and recreating the arena 166 "Unexpected arena index");
|
| mallctl.c | 347 assert_d_eq(mallctl("thread.arena", (void *)&old_arena_ind, &sz, 351 assert_d_eq(mallctl("thread.arena", (void *)&old_arena_ind, &sz, 355 assert_d_eq(mallctl("thread.arena", (void *)&old_arena_ind, &sz, 359 assert_d_eq(mallctl("thread.arena", 361 sizeof(unsigned)), EPERM, "thread.arena ctl " 362 "should not be allowed with percpu arena"); 379 assert_d_eq(mallctlnametomib("arena.0.initialized", mib, &miblen), 0, 393 "Merged arena statistics should always be initialized"); 398 "arena." STRINGIFY(MALLCTL_ARENAS_ALL) ".initialized", 402 "Merged arena statistics should always be initialized") 725 unsigned narenas_before, arena, narenas_after; local 742 unsigned arena, arena1; local [all...] |
| /src/external/gpl3/gcc/dist/libstdc++-v3/libsupc++/ |
| eh_alloc.cc | 173 // The arena itself - we need to keep track of these only 178 alignas(void*) char arena[arena_size]; member in class:__anon14811::pool 180 char *arena = nullptr; member in class:__anon14811::pool 235 arena = (char *)malloc (arena_size); 236 if (!arena) 244 // Populate the free-list with a single entry covering the whole arena 245 first_free_entry = reinterpret_cast <free_entry *> (arena); 370 return less(ptr, arena + arena_size) && less(arena, ptr); 383 if (emergency_pool.arena) [all...] |
| /src/external/mpl/dhcp/bind/dist/lib/dns/include/dns/ |
| compress.h | 77 /*% Preallocated arena for names. */ 78 unsigned char arena[DNS_COMPRESS_ARENA_SIZE]; member in struct:dns_compress
|
| /src/external/bsd/jemalloc.old/dist/src/ |
| large.c | 14 large_malloc(tsdn_t *tsdn, arena_t *arena, size_t usize, bool zero) { 17 return large_palloc(tsdn, arena, usize, CACHELINE, zero); 21 large_palloc(tsdn_t *tsdn, arena_t *arena, size_t usize, size_t alignment, 28 assert(!tsdn_null(tsdn) || arena != NULL); 45 arena = arena_choose(tsdn_tsd(tsdn), arena); 47 if (unlikely(arena == NULL) || (extent = arena_extent_alloc_large(tsdn, 48 arena, usize, alignment, &is_zeroed)) == NULL) { 53 if (!arena_is_auto(arena)) { 55 malloc_mutex_lock(tsdn, &arena->large_mtx) 97 arena_t *arena = extent_arena_get(extent); local 133 arena_t *arena = extent_arena_get(extent); local 347 arena_t *arena = extent_arena_get(extent); local [all...] |
| tcache.c | 88 tcache_alloc_small_hard(tsdn_t *tsdn, arena_t *arena, tcache_t *tcache, 92 assert(tcache->arena != NULL); 93 arena_tcache_fill_small(tsdn, arena, tcache, tbin, binind, 111 arena_t *arena = tcache->arena; local 112 assert(arena != NULL); 122 /* Lock the arena bin associated with the first object. */ 127 if (config_prof && bin_arena == arena) { 128 if (arena_prof_accum(tsd_tsdn(tsd), arena, 136 if (config_stats && bin_arena == arena) { 197 arena_t *arena = tcache->arena; local 311 arena_t *arena = tcache->arena; local 415 arena_t *arena; local 419 tcache_arena_associate(tsd_tsdn(tsd), tcache, arena); local 424 tcache_arena_associate(tsd_tsdn(tsd), tcache, arena); local [all...] |