Home
last modified time | relevance | path

Searched refs:ind (Results 1 – 19 of 19) sorted by relevance

/third_party/ulib/jemalloc/src/
A Dbase.c12 base_map(extent_hooks_t *extent_hooks, unsigned ind, size_t size) in base_map() argument
24 &zero, &commit, ind); in base_map()
56 !extent_hooks->dalloc(extent_hooks, addr, size, true, ind)) in base_unmap()
60 ind)) in base_unmap()
64 ind)) in base_unmap()
68 size, ind)) in base_unmap()
150 base_block_alloc(extent_hooks_t *extent_hooks, unsigned ind, in base_block_alloc() argument
161 block = (base_block_t *)base_map(extent_hooks, ind, block_size); in base_block_alloc()
215 block = base_block_alloc(extent_hooks, ind, &extent_sn_next, in base_new()
224 base->ind = ind; in base_new()
[all …]
A Djemalloc.c399 if (ind > MALLOCX_ARENA_MAX) in arena_init_locked()
401 if (ind == narenas_total_get()) in arena_init_locked()
410 assert(ind < narenas_auto); in arena_init_locked()
416 arena_set(ind, arena); in arena_init_locked()
501 narenas_tdata = (ind < narenas_actual) ? narenas_actual : ind+1; in arena_tdata_get_hard()
542 tdata = &arenas_tdata[ind]; in arena_tdata_get_hard()
1481 size_t usize, szind_t ind) { in imalloc_sample() argument
1562 szind_t ind = 0; in imalloc_body() local
1597 ind = size2index(size); in imalloc_body()
1602 usize = index2size(ind); in imalloc_body()
[all …]
A Dtcache.c472 tcaches_flush(tsd_t *tsd, unsigned ind) in tcaches_flush() argument
474 tcaches_elm_flush(tsd, &tcaches[ind]); in tcaches_flush()
478 tcaches_destroy(tsd_t *tsd, unsigned ind) in tcaches_destroy() argument
480 tcaches_t *elm = &tcaches[ind]; in tcaches_destroy()
A Darena.c1231 arena_malloc_hard(tsdn_t *tsdn, arena_t *arena, size_t size, szind_t ind, in arena_malloc_hard() argument
1242 return (arena_malloc_small(tsdn, arena, ind, zero)); in arena_malloc_hard()
1243 return (large_malloc(tsdn, arena, index2size(ind), zero)); in arena_malloc_hard()
1689 arena_new(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks) in arena_new() argument
1695 if (ind == 0) in arena_new()
1698 base = base_new(tsdn, ind, extent_hooks); in arena_new()
1725 arena->offset_state = config_debug ? ind : in arena_new()
1782 if (ind != 0) in arena_new()
/third_party/ulib/jemalloc/include/jemalloc/internal/
A Djemalloc_internal.h478 void arena_set(unsigned ind, arena_t *arena);
572 pszind_t ind = grp + mod; in psz2ind() local
573 return (ind); in psz2ind()
862 return (arena_tdata_get_hard(tsd, ind)); in arena_tdata_get()
873 tdata = &arenas_tdata[ind]; in arena_tdata_get()
876 return (arena_tdata_get_hard(tsd, ind)); in arena_tdata_get()
884 assert(ind <= MALLOCX_ARENA_MAX); in arena_get()
886 ret = arenas[ind]; in arena_get()
890 ret = arena_init(tsdn, ind, in arena_get()
898 decay_ticker_get(tsd_t *tsd, unsigned ind) in decay_ticker_get() argument
[all …]
A Dtcache_externs.h45 void tcaches_flush(tsd_t *tsd, unsigned ind);
46 void tcaches_destroy(tsd_t *tsd, unsigned ind);
A Darena_inlines_b.h14 void *arena_malloc(tsdn_t *tsdn, arena_t *arena, size_t size, szind_t ind,
91 arena_malloc(tsdn_t *tsdn, arena_t *arena, size_t size, szind_t ind, bool zero, in arena_malloc() argument
100 tcache, size, ind, zero, slow_path)); in arena_malloc()
104 tcache, size, ind, zero, slow_path)); in arena_malloc()
110 return (arena_malloc_hard(tsdn, arena, size, ind, zero)); in arena_malloc()
A Djemalloc_internal.h.in476 void arena_set(unsigned ind, arena_t *arena);
570 pszind_t ind = grp + mod; local
571 return (ind);
860 return (arena_tdata_get_hard(tsd, ind));
871 tdata = &arenas_tdata[ind];
874 return (arena_tdata_get_hard(tsd, ind));
882 assert(ind <= MALLOCX_ARENA_MAX);
884 ret = arenas[ind];
888 ret = arena_init(tsdn, ind,
896 decay_ticker_get(tsd_t *tsd, unsigned ind) argument
[all …]
A Dbase_inlines.h12 return (base->ind); in base_ind_get()
A Dtcache_inlines.h12 size_t size, szind_t ind, bool zero, bool slow_path);
14 size_t size, szind_t ind, bool zero, bool slow_path);
19 tcache_t *tcaches_get(tsd_t *tsd, unsigned ind);
294 tcaches_get(tsd_t *tsd, unsigned ind) in tcaches_get() argument
296 tcaches_t *elm = &tcaches[ind]; in tcaches_get()
A Dbase_structs.h18 unsigned ind; member
A Dbase_externs.h7 base_t *base_new(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks);
A Darena_externs.h55 szind_t ind, bool zero);
85 arena_t *arena_new(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks);
/third_party/ulib/jemalloc/test/integration/
A Dxallocx.c15 static unsigned ind = 0; in arena_ind() local
17 if (ind == 0) { in arena_ind()
18 size_t sz = sizeof(ind); in arena_ind()
19 assert_d_eq(mallctl("arenas.create", (void *)&ind, &sz, NULL, in arena_ind()
23 return (ind); in arena_ind()
100 get_size_impl(const char *cmd, size_t ind) in get_size_impl() argument
110 mib[2] = ind; in get_size_impl()
119 get_small_size(size_t ind) in get_small_size() argument
121 return (get_size_impl("arenas.bin.0.size", ind)); in get_small_size()
125 get_large_size(size_t ind) in get_large_size() argument
[all …]
A Dmallocx.c27 get_size_impl(const char *cmd, size_t ind) in get_size_impl() argument
37 mib[2] = ind; in get_size_impl()
40 0, "Unexpected mallctlbymib([\"%s\", %zu], ...) failure", cmd, ind); in get_size_impl()
46 get_large_size(size_t ind) in get_large_size() argument
48 return (get_size_impl("arenas.lextent.0.size", ind)); in get_large_size()
A Drallocx.c23 get_size_impl(const char *cmd, size_t ind) in get_size_impl() argument
33 mib[2] = ind; in get_size_impl()
36 0, "Unexpected mallctlbymib([\"%s\", %zu], ...) failure", cmd, ind); in get_size_impl()
42 get_large_size(size_t ind) in get_large_size() argument
44 return (get_size_impl("arenas.lextent.0.size", ind)); in get_large_size()
/third_party/ulib/jemalloc/test/unit/
A Darena_reset.c33 get_size_impl(const char *cmd, size_t ind) in get_size_impl() argument
43 mib[2] = ind; in get_size_impl()
46 0, "Unexpected mallctlbymib([\"%s\", %zu], ...) failure", cmd, ind); in get_size_impl()
52 get_small_size(size_t ind) in get_small_size() argument
54 return (get_size_impl("arenas.bin.0.size", ind)); in get_small_size()
58 get_large_size(size_t ind) in get_large_size() argument
60 return (get_size_impl("arenas.lextent.0.size", ind)); in get_large_size()
/third_party/uapp/dash/src/
A Dshow.c64 shtree(union node *n, int ind, char *pfx, FILE *fp) in shtree() argument
72 indent(ind, pfx, fp); in shtree()
83 shtree(n->nbinary.ch1, ind, NULL, fp); in shtree()
86 shtree(n->nbinary.ch2, ind, NULL, fp); in shtree()
90 if (ind >= 0) in shtree()
101 if (ind >= 0) in shtree()
106 if (ind >= 0) in shtree()
A Doptions.c441 int ind = shellparam.optind; in getopts() local
445 optnext = optfirst + ind - 1; in getopts()
447 if (ind <= 1 || off < 0 || strlen(optnext[-1]) < off) in getopts()
506 ind = optnext - optfirst + 1; in getopts()
507 setvarint("OPTIND", ind, VNOFUNC); in getopts()
513 shellparam.optind = ind; in getopts()

Completed in 33 milliseconds