| /freebsd/contrib/jemalloc/include/jemalloc/internal/ |
| H A D | prof_inlines_b.h | |
| H A D | safety_check.h | 14 safety_check_set_redzone(void *ptr, size_t usize, size_t bumped_usize) { in safety_check_set_redzone() 15 assert(usize < bumped_usize); 16 for (size_t i = usize; i < bumped_usize && i < usize + 32; ++i) { 22 safety_check_verify_redzone(const void *ptr, size_t usize, size_t bumped_usize) in safety_check_verify_redzone() 24 for (size_t i = usize; i < bumped_usize && i < usize + 32; ++i) { in safety_check_verify_redzone() 9 safety_check_set_redzone(void * ptr,size_t usize,size_t bumped_usize) safety_check_set_redzone() argument 17 safety_check_verify_redzone(const void * ptr,size_t usize,size_t bumped_usize) safety_check_verify_redzone() argument
|
| H A D | sz.h | 150 size_t usize = (psz + delta_mask) & ~delta_mask; in sz_size2index_compute() 151 return usize; in sz_size2index_compute() 231 size_t usize = grp_size + mod_size; in sz_s2u_compute() 232 return usize; in sz_s2u_compute() 255 sz_size2index_usize_fastpath(size_t size, szind_t *ind, size_t *usize) { in sz_s2u() 257 *usize = sz_index2size_lookup_impl(*ind); 283 size_t usize = (size + delta_mask) & ~delta_mask; in sz_sa2u() 284 return usize; in sz_sa2u() 314 size_t usize; in sz_sa2u() 334 usize 116 size_t usize = (psz + delta_mask) & ~delta_mask; sz_psz2u() local 192 size_t usize = grp_size + mod_size; sz_index2size_compute() local 233 size_t usize = (size + delta_mask) & ~delta_mask; sz_s2u_compute() local 264 size_t usize; sz_sa2u() local [all...] |
| H A D | tcache_inlines.h | 77 size_t usize = sz_index2size(binind); in tcache_alloc_small() 78 assert(tcache_salloc(tsd_tsdn(tsd), ret) == usize); in tcache_alloc_small() 79 memset(ret, 0, usize); in tcache_alloc_small() 115 size_t usize = sz_index2size(binind); in tcache_alloc_large() 116 assert(usize <= tcache_maxclass); in tcache_alloc_large() 117 memset(ret, 0, usize); in tcache_alloc_large()
|
| H A D | jemalloc_internal_inlines_c.h | 69 ipallocztm(tsdn_t *tsdn, size_t usize, size_t alignment, bool zero, in ipallocztm() 73 assert(usize != 0); in ipallocztm() 74 assert(usize == sz_sa2u(usize, alignment)); in ipallocztm() 80 ret = arena_palloc(tsdn, arena, usize, alignment, zero, tcache); in ipallocztm() 89 ipalloct(tsdn_t *tsdn, size_t usize, size_t alignment, bool zero, in ipalloct() 91 return ipallocztm(tsdn, usize, alignment, zero, tcache, false, arena); 95 ipalloc(tsd_t *tsd, size_t usize, size_t alignment, bool zero) { in ipalloc() 96 return ipallocztm(tsd_tsdn(tsd), usize, alignment, zero, in ipalloc() 143 size_t usize, copysiz in iralloct_realign() 67 ipallocztm(tsdn_t * tsdn,size_t usize,size_t alignment,bool zero,tcache_t * tcache,bool is_internal,arena_t * arena) ipallocztm() argument 87 ipalloct(tsdn_t * tsdn,size_t usize,size_t alignment,bool zero,tcache_t * tcache,arena_t * arena) ipalloct() argument 93 ipalloc(tsd_t * tsd,size_t usize,size_t alignment,bool zero) ipalloc() argument 141 size_t usize, copysize; iralloct_realign() local [all...] |
| H A D | prof_inlines_a.h | |
| H A D | large_externs.h | 6 void *large_malloc(tsdn_t *tsdn, arena_t *arena, size_t usize, bool zero); 7 void *large_palloc(tsdn_t *tsdn, arena_t *arena, size_t usize, size_t alignment, 11 void *large_ralloc(tsdn_t *tsdn, arena_t *arena, void *ptr, size_t usize,
|
| H A D | arena_externs.h | 47 size_t usize, size_t alignment, bool zero); 69 void *arena_palloc(tsdn_t *tsdn, arena_t *arena, size_t usize, 71 void arena_prof_promote(tsdn_t *tsdn, void *ptr, size_t usize);
|
| H A D | prof_externs.h | 64 size_t usize, prof_tctx_t *tctx); 65 void prof_free_sampled_object(tsd_t *tsd, size_t usize, prof_info_t *prof_info);
|
| /freebsd/contrib/jemalloc/src/ |
| H A D | large.c | 14 large_malloc(tsdn_t *tsdn, arena_t *arena, size_t usize, bool zero) { in large_malloc() argument 15 assert(usize == sz_s2u(usize)); in large_malloc() 17 return large_palloc(tsdn, arena, usize, CACHELINE, zero); in large_malloc() 21 large_palloc(tsdn_t *tsdn, arena_t *arena, size_t usize, size_t alignment, in large_palloc() argument 29 ausize = sz_sa2u(usize, alignment); in large_palloc() 35 arena = arena_choose_maybe_huge(tsdn_tsd(tsdn), arena, usize); in large_palloc() 38 arena, usize, alignment, zero)) == NULL) { in large_palloc() 55 large_ralloc_no_move_shrink(tsdn_t *tsdn, edata_t *edata, size_t usize) { in large_palloc() 61 assert(old_usize > usize); in large_palloc() 96 large_ralloc_no_move_shrink(tsdn_t * tsdn,extent_t * extent,size_t usize) large_ralloc_no_move_shrink() argument 131 large_ralloc_no_move_expand(tsdn_t * tsdn,extent_t * extent,size_t usize,bool zero) large_ralloc_no_move_expand() argument 265 large_ralloc_move_helper(tsdn_t * tsdn,arena_t * arena,size_t usize,size_t alignment,bool zero) large_ralloc_move_helper() argument 274 large_ralloc(tsdn_t * tsdn,arena_t * arena,void * ptr,size_t usize,size_t alignment,bool zero,tcache_t * tcache,hook_ralloc_args_t * hook_args) large_ralloc() argument [all...] |
| H A D | jemalloc.c | 141 static void default_junk_alloc(void *ptr, size_t usize) { in default_junk_alloc() argument 142 memset(ptr, junk_alloc_byte, usize); in default_junk_alloc() 145 static void default_junk_free(void *ptr, size_t usize) { in default_junk_free() argument 146 memset(ptr, junk_free_byte, usize); in default_junk_free() 2244 bool usize; member 2258 static_opts->usize = false; in static_opts_init() 2273 size_t usize; member 2285 dynamic_opts->usize = 0; in dynamic_opts_init() 2299 aligned_usize_get(size_t size, size_t alignment, size_t *usize, szind_t *ind, in aligned_usize_get() argument 2301 assert(usize != NULL); in aligned_usize_get() [all …]
|
| H A D | arena.c | 291 arena_large_malloc_stats_update(tsdn_t *tsdn, arena_t *arena, size_t usize) { in arena_slab_reg_alloc_batch() 296 if (usize < SC_LARGE_MINCLASS) { in arena_slab_reg_alloc_batch() 297 usize = SC_LARGE_MINCLASS; in arena_slab_reg_alloc_batch() 299 index = sz_size2index(usize); in arena_slab_reg_alloc_batch() 307 arena_large_dalloc_stats_update(tsdn_t *tsdn, arena_t *arena, size_t usize) { in arena_slab_reg_alloc_batch() 312 if (usize < SC_LARGE_MINCLASS) { in arena_slab_reg_alloc_batch() 313 usize = SC_LARGE_MINCLASS; in arena_slab_reg_alloc_batch() 315 index = sz_size2index(usize); in arena_slab_reg_alloc_batch() 324 size_t usize) { in arena_slab_reg_alloc_batch() 325 arena_large_malloc_stats_update(tsdn, arena, usize); in arena_slab_reg_alloc_batch() 384 arena_large_malloc_stats_update(tsdn_t * tsdn,arena_t * arena,size_t usize) arena_large_malloc_stats_update() argument 400 arena_large_dalloc_stats_update(tsdn_t * tsdn,arena_t * arena,size_t usize) arena_large_dalloc_stats_update() argument 417 arena_large_ralloc_stats_update(tsdn_t * tsdn,arena_t * arena,size_t oldusize,size_t usize) arena_large_ralloc_stats_update() argument 428 arena_extent_alloc_large(tsdn_t * tsdn,arena_t * arena,size_t usize,size_t alignment,bool * zero) arena_extent_alloc_large() argument 493 size_t usize = extent_usize_get(extent); arena_extent_ralloc_large_shrink() local 507 size_t usize = extent_usize_get(extent); arena_extent_ralloc_large_expand() local 1117 size_t usize; arena_reset() local 1463 size_t usize; arena_malloc_small() local 1532 arena_palloc(tsdn_t * tsdn,arena_t * arena,size_t usize,size_t alignment,bool zero,tcache_t * tcache) arena_palloc() argument 1553 arena_prof_promote(tsdn_t * tsdn,void * ptr,size_t usize) arena_prof_promote() argument 1603 size_t usize = extent_usize_get(extent); arena_dalloc_promoted() local 1786 arena_ralloc_move_helper(tsdn_t * tsdn,arena_t * arena,size_t usize,size_t alignment,bool zero,tcache_t * tcache) arena_ralloc_move_helper() argument 1803 size_t usize = sz_s2u(size); arena_ralloc() local [all...] |
| H A D | ckh.c | 273 size_t usize; in ckh_grow() 276 usize = sz_sa2u(sizeof(ckhc_t) << lg_curcells, CACHELINE); in ckh_grow() 277 if (unlikely(usize == 0 in ckh_grow() 278 || usize > SC_LARGE_MAXCLASS)) { in ckh_grow() 282 tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELINE, in ckh_grow() 313 size_t usize; in ckh_shrink() 322 usize = sz_sa2u(sizeof(ckhc_t) << lg_curcells, CACHELINE); in ckh_shrink() 323 if (unlikely(usize == 0 || usize > SC_LARGE_MAXCLASS)) { in ckh_shrink() 326 tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELIN in ckh_shrink() 274 size_t usize; ckh_grow() local 314 size_t usize; ckh_shrink() local 363 size_t mincells, usize; ckh_new() local [all...] |
| H A D | base.c | 247 size_t usize = ALIGNMENT_CEILING(size, alignment); 259 + usize)); in base_block_alloc() 438 size_t usize = ALIGNMENT_CEILING(size, alignment); in base_alloc_impl() 439 size_t asize = usize + alignment - QUANTUM; in base_alloc_impl() 452 edata = base_extent_alloc(tsdn, base, usize, alignment); in base_alloc_impl() 460 ret = base_extent_bump_alloc(base, edata, usize, alignment); 252 size_t usize = ALIGNMENT_CEILING(size, alignment); base_block_alloc() local 424 size_t usize = ALIGNMENT_CEILING(size, alignment); base_alloc_impl() local
|
| H A D | prof.c | 100 size_t usize, prof_tctx_t *tctx) { 111 szind_t szind = sz_size2index(usize); 128 tctx->cnts.curbytes += usize; 133 tctx->cnts.accumbytes += usize; 141 prof_recent_alloc(tsd, edata, size, usize); 150 prof_free_sampled_object(tsd_t *tsd, size_t usize, prof_info_t *prof_info) { 157 szind_t szind = sz_size2index(usize); 161 assert(tctx->cnts.curbytes >= usize); 170 tctx->cnts.curbytes -= usize; 173 prof_try_log(tsd, usize, prof_inf 146 size_t usize; global() member 343 prof_malloc_sample_object(tsdn_t * tsdn,const void * ptr,size_t usize,prof_tctx_t * tctx) prof_malloc_sample_object() argument 444 prof_try_log(tsd_t * tsd,const void * ptr,size_t usize,prof_tctx_t * tctx) prof_try_log() argument 521 prof_free_sampled_object(tsd_t * tsd,const void * ptr,size_t usize,prof_tctx_t * tctx) prof_free_sampled_object() argument [all...] |
| /freebsd/contrib/libarchive/libarchive/ |
| H A D | archive_write_add_filter_lzop.c | 321 lzo_uint usize, csize; in drive_compressor() 331 usize = (lzo_uint) in drive_compressor() 337 r = lzo1x_1_compress(data->uncompressed, usize, in drive_compressor() 342 r = lzo1x_1_15_compress(data->uncompressed, usize, in drive_compressor() 347 r = lzo1x_999_compress_level(data->uncompressed, usize, in drive_compressor() 359 archive_be32enc(p + header_bytes, (uint32_t)usize); in drive_compressor() 361 checksum = lzo_adler32(1, data->uncompressed, usize); in drive_compressor() 364 if (csize < usize) { in drive_compressor() 374 archive_be32enc(p + header_bytes + 4, (uint32_t)usize); in drive_compressor() 380 usize); in drive_compressor() 322 lzo_uint usize, csize; drive_compressor() local [all...] |
| /freebsd/bin/ed/ |
| H A D | undo.c | 36 static long usize = 0; /* stack size variable */ variable 47 (ustack = (undo_t *) malloc((usize = USIZE) * sizeof(undo_t))) == NULL) { in push_undo_stack() 54 if (u_p < usize || in push_undo_stack() 55 (t = (undo_t *) realloc(ustack, (usize += USIZE) * sizeof(undo_t))) != NULL) { in push_undo_stack() 68 usize = 0; in push_undo_stack()
|
| /freebsd/usr.bin/gzip/ |
| H A D | gzip.c | 1750 off_t usize, gsize; in handle_stdin() local 1793 usize = cat_fd(fourbytes, sizeof fourbytes, &gsize, STDIN_FILENO); in handle_stdin() 1796 usize = gz_uncompress(STDIN_FILENO, STDOUT_FILENO, in handle_stdin() 1801 usize = unbzip2(STDIN_FILENO, STDOUT_FILENO, in handle_stdin() 1812 usize = zuncompress(in, stdout, (char *)fourbytes, in handle_stdin() 1819 usize = unpack(STDIN_FILENO, STDOUT_FILENO, in handle_stdin() 1825 usize = unxz(STDIN_FILENO, STDOUT_FILENO, in handle_stdin() 1831 usize = unlz(STDIN_FILENO, STDOUT_FILENO, in handle_stdin() 1837 usize = unzstd(STDIN_FILENO, STDOUT_FILENO, in handle_stdin() 1843 if (vflag && !tflag && usize != -1 && gsize != -1) in handle_stdin() [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mount/ |
| H A D | umount_unlinked_drain.ksh | 55 usize=$(($nunlinks - $nunlinked)) 56 if [[ $iters == $MAX_ITERS && $usize == $1 ]]; then 59 if [[ $usize == $last_usize ]]; then 64 last_usize=$usize
|
| /freebsd/contrib/bc/scripts/ |
| H A D | release.pkg.yao | 203 defbits: usize = if no64 { usize(32); } else { usize(64); }; 274 long_bit: usize 345 long_bit: usize 390 long_bit: usize 491 long_bit: usize, 555 long_bit: usize, 630 run_config_tests_make(cflags, cc, flags, true, usize(64)); 635 run_config_tests_make(cflags, cc, flags, false, usize(64)); 639 cc, flags, true, usize(64)); 646 cc, flags +~ " -e", true, usize(64)); [all …]
|
| /freebsd/contrib/bc/ |
| H A D | build.pkg.rig | 334 MAX_WIDTH: usize = usize(72); 388 i: !usize = usize(0); 389 count: !usize = usize(0); 390 slashes: !usize = usize(0); 398 slashes! = slashes + usize(1); 399 i! = i + usize(2); 403 slashes! = slashes + usize(1); 404 i! = i + usize(1); 407 i! = i + usize(1); 417 i! = i + usize(1); [all …]
|
| /freebsd/sys/compat/linux/ |
| H A D | linux_fork.c | 435 if (args->usize > PAGE_SIZE) in linux_clone3() 437 if (args->usize < LINUX_CLONE_ARGS_SIZE_VER0) in linux_clone3() 445 size = max(args->usize, sizeof(*uca)); in linux_clone3() 447 error = copyin(args->uargs, uca, args->usize); in linux_clone3()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_placement_new.h | 20 inline void *operator new(__sanitizer::usize sz, void *p) { return p; } in new()
|
| H A D | sanitizer_internal_defs.h | 195 typedef __SIZE_TYPE__ usize; typedef 203 typedef unsigned int usize; typedef 205 typedef uptr usize; typedef
|
| /freebsd/contrib/jemalloc/ |
| H A D | FREEBSD-diffs | 446 + size_t usize = je_xallocx(*ptr, size, extra, flags); 447 + ret = (usize >= size) ? ALLOCM_SUCCESS : ALLOCM_ERR_NOT_MOVED; 449 + *rsize = usize; 481 + size_t usize = je_nallocx(size, flags); 482 + if (usize == 0) { 486 + *rsize = usize;
|