Home
last modified time | relevance | path

Searched refs:usize (Results 1 – 25 of 25) sorted by relevance

/NextBSD/contrib/jemalloc/include/jemalloc/internal/
HDvalgrind.h16 #define JEMALLOC_VALGRIND_MAKE_MEM_NOACCESS(ptr, usize) do { \ argument
18 valgrind_make_mem_noaccess(ptr, usize); \
20 #define JEMALLOC_VALGRIND_MAKE_MEM_UNDEFINED(ptr, usize) do { \ argument
22 valgrind_make_mem_undefined(ptr, usize); \
24 #define JEMALLOC_VALGRIND_MAKE_MEM_DEFINED(ptr, usize) do { \ argument
26 valgrind_make_mem_defined(ptr, usize); \
33 #define JEMALLOC_VALGRIND_MALLOC(cond, ptr, usize, zero) do { \ argument
35 VALGRIND_MALLOCLIKE_BLOCK(ptr, usize, p2rz(ptr), zero); \
37 #define JEMALLOC_VALGRIND_REALLOC(maybe_moved, ptr, usize, \ argument
45 usize, rzsize); \
[all …]
HDprof.h284 void prof_malloc_sample_object(const void *ptr, size_t usize,
286 void prof_free_sampled_object(tsd_t *tsd, size_t usize, prof_tctx_t *tctx);
332 bool prof_sample_accum_update(tsd_t *tsd, size_t usize, bool commit,
334 prof_tctx_t *prof_alloc_prep(tsd_t *tsd, size_t usize, bool prof_active,
337 void prof_tctx_set(const void *ptr, size_t usize, prof_tctx_t *tctx);
338 void prof_tctx_reset(const void *ptr, size_t usize, const void *old_ptr,
340 void prof_malloc_sample_object(const void *ptr, size_t usize,
342 void prof_malloc(const void *ptr, size_t usize, prof_tctx_t *tctx);
343 void prof_realloc(tsd_t *tsd, const void *ptr, size_t usize,
346 void prof_free(tsd_t *tsd, const void *ptr, size_t usize);
[all …]
HDjemalloc_internal.h607 size_t usize = grp_size + mod_size; in index2size_compute() local
608 return (usize); in index2size_compute()
648 size_t usize = (size + delta_mask) & ~delta_mask; in s2u_compute() local
649 return (usize); in s2u_compute()
683 size_t usize; in sa2u() local
703 usize = s2u(ALIGNMENT_CEILING(size, alignment)); in sa2u()
704 if (usize < LARGE_MINCLASS) in sa2u()
705 return (usize); in sa2u()
717 usize = (size <= LARGE_MINCLASS) ? LARGE_MINCLASS : s2u(size); in sa2u()
723 if (usize + large_pad + alignment - PAGE <= arena_maxrun) in sa2u()
[all …]
HDtcache.h271 size_t usize; in tcache_alloc_small() local
277 usize = index2size(binind); in tcache_alloc_small()
284 assert(tcache_salloc(ret) == usize); in tcache_alloc_small()
292 memset(ret, 0, usize); in tcache_alloc_small()
299 memset(ret, 0, usize); in tcache_alloc_small()
305 tcache->prof_accumbytes += usize; in tcache_alloc_small()
316 size_t usize; in tcache_alloc_large() local
320 usize = index2size(binind); in tcache_alloc_large()
321 assert(usize <= tcache_maxclass); in tcache_alloc_large()
330 ret = arena_malloc_large(arena, usize, zero); in tcache_alloc_large()
[all …]
HDarena.h437 void *arena_chunk_alloc_huge(arena_t *arena, size_t usize, size_t alignment,
439 void arena_chunk_dalloc_huge(arena_t *arena, void *chunk, size_t usize);
441 size_t oldsize, size_t usize);
443 size_t oldsize, size_t usize);
445 size_t oldsize, size_t usize, bool *zero);
463 void arena_quarantine_junk_small(void *ptr, size_t usize);
466 void *arena_palloc(tsd_t *tsd, arena_t *arena, size_t usize,
479 void arena_dalloc_junk_large(void *ptr, size_t usize);
558 void arena_prof_tctx_set(const void *ptr, size_t usize, prof_tctx_t *tctx);
559 void arena_prof_tctx_reset(const void *ptr, size_t usize,
[all …]
HDquarantine.h16 size_t usize; member
HDhuge.h19 size_t usize, size_t alignment, bool zero, tcache_t *tcache);
/NextBSD/contrib/jemalloc/src/
HDhuge.c37 size_t usize; in huge_malloc() local
39 usize = s2u(size); in huge_malloc()
40 if (usize == 0) { in huge_malloc()
45 return (huge_palloc(tsd, arena, usize, chunksize, zero, tcache)); in huge_malloc()
53 size_t usize; in huge_palloc() local
59 usize = sa2u(size, alignment); in huge_palloc()
60 if (unlikely(usize == 0)) in huge_palloc()
62 assert(usize >= chunksize); in huge_palloc()
110 huge_dalloc_junk(void *ptr, size_t usize) in huge_dalloc_junk() argument
119 memset(ptr, 0x5a, usize); in huge_dalloc_junk()
[all …]
HDjemalloc.c1362 imalloc_prof_sample(tsd_t *tsd, size_t usize, prof_tctx_t *tctx) in imalloc_prof_sample() argument
1368 if (usize <= SMALL_MAXCLASS) { in imalloc_prof_sample()
1372 arena_prof_promoted(p, usize); in imalloc_prof_sample()
1374 p = imalloc(tsd, usize); in imalloc_prof_sample()
1380 imalloc_prof(tsd_t *tsd, size_t usize) in imalloc_prof() argument
1385 tctx = prof_alloc_prep(tsd, usize, prof_active_get_unlocked(), true); in imalloc_prof()
1387 p = imalloc_prof_sample(tsd, usize, tctx); in imalloc_prof()
1389 p = imalloc(tsd, usize); in imalloc_prof()
1394 prof_malloc(p, usize, tctx); in imalloc_prof()
1400 imalloc_body(size_t size, tsd_t **tsd, size_t *usize) in imalloc_body() argument
[all …]
HDquarantine.c100 assert(obj->usize == isalloc(obj->ptr, config_prof)); in quarantine_drain_one()
102 quarantine->curbytes -= obj->usize; in quarantine_drain_one()
120 size_t usize = isalloc(ptr, config_prof); in quarantine() local
133 if (quarantine->curbytes + usize > opt_quarantine) { in quarantine()
134 size_t upper_bound = (opt_quarantine >= usize) ? opt_quarantine in quarantine()
135 - usize : 0; in quarantine()
144 if (quarantine->curbytes + usize <= opt_quarantine) { in quarantine()
149 obj->usize = usize; in quarantine()
150 quarantine->curbytes += usize; in quarantine()
158 && usize <= SMALL_MAXCLASS) in quarantine()
[all …]
HDarena.c781 arena_huge_malloc_stats_update(arena_t *arena, size_t usize) in arena_huge_malloc_stats_update() argument
783 szind_t index = size2index(usize) - nlclasses - NBINS; in arena_huge_malloc_stats_update()
788 arena->stats.allocated_huge += usize; in arena_huge_malloc_stats_update()
794 arena_huge_malloc_stats_update_undo(arena_t *arena, size_t usize) in arena_huge_malloc_stats_update_undo() argument
796 szind_t index = size2index(usize) - nlclasses - NBINS; in arena_huge_malloc_stats_update_undo()
801 arena->stats.allocated_huge -= usize; in arena_huge_malloc_stats_update_undo()
807 arena_huge_dalloc_stats_update(arena_t *arena, size_t usize) in arena_huge_dalloc_stats_update() argument
809 szind_t index = size2index(usize) - nlclasses - NBINS; in arena_huge_dalloc_stats_update()
814 arena->stats.allocated_huge -= usize; in arena_huge_dalloc_stats_update()
820 arena_huge_dalloc_stats_update_undo(arena_t *arena, size_t usize) in arena_huge_dalloc_stats_update_undo() argument
[all …]
HDckh.c265 size_t usize; in ckh_grow() local
268 usize = sa2u(sizeof(ckhc_t) << lg_curcells, CACHELINE); in ckh_grow()
269 if (usize == 0) { in ckh_grow()
273 tab = (ckhc_t *)ipallocztm(tsd, usize, CACHELINE, true, NULL, in ckh_grow()
305 size_t lg_curcells, usize; in ckh_shrink() local
314 usize = sa2u(sizeof(ckhc_t) << lg_curcells, CACHELINE); in ckh_shrink()
315 if (usize == 0) in ckh_shrink()
317 tab = (ckhc_t *)ipallocztm(tsd, usize, CACHELINE, true, NULL, true, in ckh_shrink()
354 size_t mincells, usize; in ckh_new() local
389 usize = sa2u(sizeof(ckhc_t) << lg_mincells, CACHELINE); in ckh_new()
[all …]
HDbase.c82 size_t csize, usize; in base_alloc() local
92 usize = s2u(csize); in base_alloc()
93 extent_node_init(&key, NULL, NULL, usize, false, false); in base_alloc()
HDprof.c226 prof_malloc_sample_object(const void *ptr, size_t usize, prof_tctx_t *tctx) in prof_malloc_sample_object() argument
229 prof_tctx_set(ptr, usize, tctx); in prof_malloc_sample_object()
233 tctx->cnts.curbytes += usize; in prof_malloc_sample_object()
236 tctx->cnts.accumbytes += usize; in prof_malloc_sample_object()
243 prof_free_sampled_object(tsd_t *tsd, size_t usize, prof_tctx_t *tctx) in prof_free_sampled_object() argument
248 assert(tctx->cnts.curbytes >= usize); in prof_free_sampled_object()
250 tctx->cnts.curbytes -= usize; in prof_free_sampled_object()
/NextBSD/contrib/libarchive/libarchive/
HDarchive_write_add_filter_lzop.c327 lzo_uint usize, csize; in drive_compressor() local
337 usize = (lzo_uint) in drive_compressor()
343 r = lzo1x_1_compress(data->uncompressed, usize, in drive_compressor()
348 r = lzo1x_1_15_compress(data->uncompressed, usize, in drive_compressor()
353 r = lzo1x_999_compress_level(data->uncompressed, usize, in drive_compressor()
365 archive_be32enc(p + header_bytes, (uint32_t)usize); in drive_compressor()
367 checksum = lzo_adler32(1, data->uncompressed, usize); in drive_compressor()
370 if (csize < usize) { in drive_compressor()
380 archive_be32enc(p + header_bytes + 4, (uint32_t)usize); in drive_compressor()
386 usize); in drive_compressor()
/NextBSD/bin/ed/
HDundo.c36 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()
/NextBSD/usr.bin/gzip/
HDgzip.c1679 off_t usize, gsize; in handle_stdin() local
1722 usize = cat_fd(header1, sizeof header1, &gsize, STDIN_FILENO); in handle_stdin()
1726 usize = gz_uncompress(STDIN_FILENO, STDOUT_FILENO, in handle_stdin()
1731 usize = unbzip2(STDIN_FILENO, STDOUT_FILENO, in handle_stdin()
1742 usize = zuncompress(in, stdout, (char *)header1, in handle_stdin()
1749 usize = unpack(STDIN_FILENO, STDOUT_FILENO, in handle_stdin()
1755 usize = unxz(STDIN_FILENO, STDOUT_FILENO, in handle_stdin()
1762 if (vflag && !tflag && usize != -1 && gsize != -1) in handle_stdin()
1763 print_verbage(NULL, NULL, usize, gsize); in handle_stdin()
1765 print_test("(stdin)", usize != -1); in handle_stdin()
[all …]
/NextBSD/contrib/jemalloc/
HDFREEBSD-diffs343 + size_t usize = je_xallocx(*ptr, size, extra, flags);
344 + ret = (usize >= size) ? ALLOCM_SUCCESS : ALLOCM_ERR_NOT_MOVED;
346 + *rsize = usize;
380 + size_t usize;
382 + usize = je_nallocx(size, flags);
383 + if (usize == 0)
386 + *rsize = usize;
/NextBSD/contrib/gcc/
HDlocal-alloc.c1851 int usize, ssize; in combine_regs() local
1885 usize = hard_regno_nregs[ureg][GET_MODE (usedreg)]; in combine_regs()
1887 usize = ((GET_MODE_SIZE (GET_MODE (usedreg)) in combine_regs()
1929 || (offset > 0 && usize + offset > ssize) in combine_regs()
1930 || (offset < 0 && usize + offset < ssize) in combine_regs()
1933 || (ssize > usize && ureg >= FIRST_PSEUDO_REGISTER in combine_regs()
1934 && usize < qty[reg_qty[ureg]].size) in combine_regs()
2036 if (usize < ssize) in combine_regs()
/NextBSD/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
HDdsl_dir.h140 uint64_t asize, uint64_t fsize, uint64_t usize, void **tr_cookiep,
/NextBSD/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
HDdmu_tx.c1120 uint64_t memory, asize, fsize, usize; in dmu_tx_try_assign() local
1201 usize = spa_get_asize(tx->tx_pool->dp_spa, tounref); in dmu_tx_try_assign()
1220 asize, fsize, usize, &tx->tx_tempreserve_cookie, tx); in dmu_tx_try_assign()
HDdsl_dir.c1239 uint64_t fsize, uint64_t usize, void **tr_cookiep, dmu_tx_t *tx) in dsl_dir_tempreserve_space() argument
1281 FALSE, asize > usize, tr_list, tx, TRUE); in dsl_dir_tempreserve_space()
/NextBSD/sys/dev/iwi/
HDif_iwireg.h164 uint32_t usize; /* size of ucode image */ member
HDif_iwi.c2277 if (fp->datasize < sizeof(*hdr) + le32toh(hdr->bsize) + le32toh(hdr->usize) in iwi_get_firmware()
2287 sc->fw_uc.size = le32toh(hdr->usize); in iwi_get_firmware()
/NextBSD/sys/contrib/dev/ath/ath_hal/ar9300/
HDar9300_eeprom.c3963 usize = -1; in ar9300_eeprom_restore_internal_address()
3964 if (usize != mdata_size) { in ar9300_eeprom_restore_internal_address()
3967 __func__, usize, mdata_size); in ar9300_eeprom_restore_internal_address()