/external/jemalloc/include/jemalloc/internal/ |
D | valgrind.h | 16 #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, tsdn, ptr, usize, zero) do { \ argument 35 VALGRIND_MALLOCLIKE_BLOCK(ptr, usize, p2rz(tsdn, ptr), \ 51 #define JEMALLOC_VALGRIND_REALLOC(moved, tsdn, ptr, usize, ptr_null, \ argument 59 usize, rzsize); \ [all …]
|
D | prof.h | 284 void prof_malloc_sample_object(tsdn_t *tsdn, const void *ptr, size_t usize, 286 void prof_free_sampled_object(tsd_t *tsd, size_t usize, prof_tctx_t *tctx); 334 void prof_tctx_set(tsdn_t *tsdn, const void *ptr, size_t usize, 336 void prof_tctx_reset(tsdn_t *tsdn, const void *ptr, size_t usize, 338 bool prof_sample_accum_update(tsd_t *tsd, size_t usize, bool commit, 340 prof_tctx_t *prof_alloc_prep(tsd_t *tsd, size_t usize, bool prof_active, 342 void prof_malloc(tsdn_t *tsdn, const void *ptr, size_t usize, 344 void prof_realloc(tsd_t *tsd, const void *ptr, size_t usize, 347 void prof_free(tsd_t *tsd, const void *ptr, size_t usize); 411 prof_tctx_set(tsdn_t *tsdn, const void *ptr, size_t usize, prof_tctx_t *tctx) in prof_tctx_set() argument [all …]
|
D | jemalloc_internal.h | 659 size_t usize = (psz + delta_mask) & ~delta_mask; in psz2u() local 660 return (usize); in psz2u() 739 size_t usize = grp_size + mod_size; in index2size_compute() local 740 return (usize); in index2size_compute() 780 size_t usize = (size + delta_mask) & ~delta_mask; in s2u_compute() local 781 return (usize); in s2u_compute() 815 size_t usize; in sa2u() local 835 usize = s2u(ALIGNMENT_CEILING(size, alignment)); in sa2u() 836 if (usize < LARGE_MINCLASS) in sa2u() 837 return (usize); in sa2u() [all …]
|
D | tcache.h | 301 size_t usize JEMALLOC_CC_SILENCE_INIT(0); in tcache_alloc_small() 325 usize = index2size(binind); in tcache_alloc_small() 326 assert(tcache_salloc(tsd_tsdn(tsd), ret) == usize); in tcache_alloc_small() 335 memset(ret, 0, usize); in tcache_alloc_small() 342 memset(ret, 0, usize); in tcache_alloc_small() 348 tcache->prof_accumbytes += usize; in tcache_alloc_small() 378 size_t usize JEMALLOC_CC_SILENCE_INIT(0); in tcache_alloc_large() 383 usize = index2size(binind); in tcache_alloc_large() 384 assert(usize <= tcache_maxclass); in tcache_alloc_large() 387 if (config_prof && usize == LARGE_MINCLASS) { in tcache_alloc_large() [all …]
|
D | jemalloc_internal.h.in | 659 size_t usize = (psz + delta_mask) & ~delta_mask; local 660 return (usize); 739 size_t usize = grp_size + mod_size; local 740 return (usize); 780 size_t usize = (size + delta_mask) & ~delta_mask; local 781 return (usize); 815 size_t usize; local 835 usize = s2u(ALIGNMENT_CEILING(size, alignment)); 836 if (usize < LARGE_MINCLASS) 837 return (usize); [all …]
|
D | huge.h | 12 void *huge_malloc(tsdn_t *tsdn, arena_t *arena, size_t usize, bool zero); 13 void *huge_palloc(tsdn_t *tsdn, arena_t *arena, size_t usize, 18 size_t usize, size_t alignment, bool zero, tcache_t *tcache);
|
D | arena.h | 543 void *arena_chunk_alloc_huge(tsdn_t *tsdn, arena_t *arena, size_t usize, 546 size_t usize, size_t sn); 548 void *chunk, size_t oldsize, size_t usize); 550 void *chunk, size_t oldsize, size_t usize, size_t sn); 552 void *chunk, size_t oldsize, size_t usize, bool *zero); 574 void arena_quarantine_junk_small(void *ptr, size_t usize); 579 void *arena_palloc(tsdn_t *tsdn, arena_t *arena, size_t usize, 592 void arena_dalloc_junk_large(void *ptr, size_t usize); 694 void arena_prof_tctx_set(tsdn_t *tsdn, const void *ptr, size_t usize, 696 void arena_prof_tctx_reset(tsdn_t *tsdn, const void *ptr, size_t usize, [all …]
|
D | quarantine.h | 16 size_t usize; member
|
/external/jemalloc/src/ |
D | huge.c | 43 huge_malloc(tsdn_t *tsdn, arena_t *arena, size_t usize, bool zero) in huge_malloc() argument 46 assert(usize == s2u(usize)); in huge_malloc() 48 return (huge_palloc(tsdn, arena, usize, chunksize, zero)); in huge_malloc() 52 huge_palloc(tsdn_t *tsdn, arena_t *arena, size_t usize, size_t alignment, in huge_palloc() argument 66 ausize = sa2u(usize, alignment); in huge_palloc() 99 arena, usize, alignment, &sn, &is_zeroed)) == NULL) { in huge_palloc() 104 extent_node_init(node, arena, ret, usize, sn, is_zeroed, true); in huge_palloc() 107 arena_chunk_dalloc_huge(tsdn, arena, ret, usize, sn); in huge_palloc() 120 memset(ret, 0, usize); in huge_palloc() 122 memset(ret, JEMALLOC_ALLOC_JUNK, usize); in huge_palloc() [all …]
|
D | jemalloc.c | 1537 ialloc_prof_sample(tsd_t *tsd, size_t usize, szind_t ind, bool zero, argument 1544 if (usize <= SMALL_MAXCLASS) { 1549 arena_prof_promoted(tsd_tsdn(tsd), p, usize); 1551 p = ialloc(tsd, usize, ind, zero, slow_path); 1557 ialloc_prof(tsd_t *tsd, size_t usize, szind_t ind, bool zero, bool slow_path) argument 1562 tctx = prof_alloc_prep(tsd, usize, prof_active_get_unlocked(), true); 1564 p = ialloc_prof_sample(tsd, usize, ind, zero, tctx, slow_path); 1566 p = ialloc(tsd, usize, ind, zero, slow_path); 1571 prof_malloc(tsd_tsdn(tsd), p, usize, tctx); 1583 ialloc_body(size_t size, bool zero, tsdn_t **tsdn, size_t *usize, argument [all …]
|
D | valgrind.c | 9 valgrind_make_mem_noaccess(void *ptr, size_t usize) in valgrind_make_mem_noaccess() argument 12 VALGRIND_MAKE_MEM_NOACCESS(ptr, usize); in valgrind_make_mem_noaccess() 16 valgrind_make_mem_undefined(void *ptr, size_t usize) in valgrind_make_mem_undefined() argument 19 VALGRIND_MAKE_MEM_UNDEFINED(ptr, usize); in valgrind_make_mem_undefined() 23 valgrind_make_mem_defined(void *ptr, size_t usize) in valgrind_make_mem_defined() argument 26 VALGRIND_MAKE_MEM_DEFINED(ptr, usize); in valgrind_make_mem_defined() 30 valgrind_freelike_block(void *ptr, size_t usize) in valgrind_freelike_block() argument 33 VALGRIND_FREELIKE_BLOCK(ptr, usize); in valgrind_freelike_block()
|
D | quarantine.c | 100 assert(obj->usize == isalloc(tsdn, obj->ptr, config_prof)); in quarantine_drain_one() 102 quarantine->curbytes -= obj->usize; in quarantine_drain_one() 120 size_t usize = isalloc(tsd_tsdn(tsd), 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 …]
|
D | arena.c | 811 arena_huge_malloc_stats_update(arena_t *arena, size_t usize) in arena_huge_malloc_stats_update() argument 813 szind_t index = size2index(usize) - nlclasses - NBINS; in arena_huge_malloc_stats_update() 818 arena->stats.allocated_huge += usize; in arena_huge_malloc_stats_update() 824 arena_huge_malloc_stats_update_undo(arena_t *arena, size_t usize) in arena_huge_malloc_stats_update_undo() argument 826 szind_t index = size2index(usize) - nlclasses - NBINS; in arena_huge_malloc_stats_update_undo() 831 arena->stats.allocated_huge -= usize; in arena_huge_malloc_stats_update_undo() 837 arena_huge_dalloc_stats_update(arena_t *arena, size_t usize) in arena_huge_dalloc_stats_update() argument 839 szind_t index = size2index(usize) - nlclasses - NBINS; in arena_huge_dalloc_stats_update() 844 arena->stats.allocated_huge -= usize; in arena_huge_dalloc_stats_update() 850 arena_huge_reset_stats_cancel(arena_t *arena, size_t usize) in arena_huge_reset_stats_cancel() argument [all …]
|
D | ckh.c | 266 size_t usize; in ckh_grow() local 269 usize = sa2u(sizeof(ckhc_t) << lg_curcells, CACHELINE); in ckh_grow() 270 if (unlikely(usize == 0 || usize > HUGE_MAXCLASS)) { in ckh_grow() 274 tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELINE, in ckh_grow() 306 size_t usize; in ckh_shrink() local 315 usize = sa2u(sizeof(ckhc_t) << lg_curcells, CACHELINE); in ckh_shrink() 316 if (unlikely(usize == 0 || usize > HUGE_MAXCLASS)) in ckh_shrink() 318 tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELINE, true, NULL, in ckh_shrink() 355 size_t mincells, usize; in ckh_new() local 390 usize = sa2u(sizeof(ckhc_t) << lg_mincells, CACHELINE); in ckh_new() [all …]
|
D | base.c | 93 size_t csize, usize; in base_alloc() local 103 usize = s2u(csize); in base_alloc() 104 extent_node_init(&key, NULL, NULL, usize, 0, false, false); in base_alloc()
|
D | prof.c | 226 prof_malloc_sample_object(tsdn_t *tsdn, const void *ptr, size_t usize, in prof_malloc_sample_object() argument 230 prof_tctx_set(tsdn, ptr, usize, tctx); in prof_malloc_sample_object() 234 tctx->cnts.curbytes += usize; in prof_malloc_sample_object() 237 tctx->cnts.accumbytes += usize; in prof_malloc_sample_object() 244 prof_free_sampled_object(tsd_t *tsd, size_t usize, prof_tctx_t *tctx) in prof_free_sampled_object() argument 249 assert(tctx->cnts.curbytes >= usize); in prof_free_sampled_object() 251 tctx->cnts.curbytes -= usize; in prof_free_sampled_object()
|
/external/strace/ |
D | sched.c | 100 unsigned int usize) in print_sched_attr() argument 105 if (usize) { in print_sched_attr() 107 size = usize <= sizeof(attr) ? usize : (unsigned) sizeof(attr); in print_sched_attr() 116 usize = attr.size; in print_sched_attr() 117 if (!usize) in print_sched_attr() 118 usize = SCHED_ATTR_MIN_SIZE; in print_sched_attr() 119 size = usize <= sizeof(attr) ? usize : (unsigned) sizeof(attr); in print_sched_attr() 143 if (usize > size) in print_sched_attr()
|
/external/jemalloc/test/unit/ |
D | junk.c | 41 arena_dalloc_junk_large_intercept(void *ptr, size_t usize) in arena_dalloc_junk_large_intercept() argument 45 arena_dalloc_junk_large_orig(ptr, usize); in arena_dalloc_junk_large_intercept() 46 for (i = 0; i < usize; i++) { in arena_dalloc_junk_large_intercept() 49 i, usize); in arena_dalloc_junk_large_intercept() 56 huge_dalloc_junk_intercept(void *ptr, size_t usize) in huge_dalloc_junk_intercept() argument 59 huge_dalloc_junk_orig(ptr, usize); in huge_dalloc_junk_intercept() 171 arena_ralloc_junk_large_intercept(void *ptr, size_t old_usize, size_t usize) in arena_ralloc_junk_large_intercept() argument 174 arena_ralloc_junk_large_orig(ptr, old_usize, usize); in arena_ralloc_junk_large_intercept() 176 assert_zu_eq(usize, shrink_size(large_maxclass), "Unexpected usize"); in arena_ralloc_junk_large_intercept() 203 arena_redzone_corruption_replacement(void *ptr, size_t usize, bool after, in arena_redzone_corruption_replacement() argument
|
D | quarantine.c | 62 arena_redzone_corruption_replacement(void *ptr, size_t usize, bool after, in arena_redzone_corruption_replacement() argument
|
/external/jemalloc/test/integration/ |
D | allocated.c | 18 size_t sz, usize; in thd_start() local 70 usize = malloc_usable_size(p); in thd_start() 71 assert_u64_le(a0 + usize, a1, in thd_start() 87 assert_u64_le(d0 + usize, d1, in thd_start()
|
/external/libcups/cups/ |
D | pwg-media.c | 273 char usize[12 + 1 + 12 + 3], /* Unit size: NNNNNNNNNNNNxNNNNNNNNNNNNuu */ in pwgFormatSizeName() local 315 name = usize; in pwgFormatSizeName() 359 uptr = usize; in pwgFormatSizeName() 360 (*format)(uptr, sizeof(usize) - (size_t)(uptr - usize), width); in pwgFormatSizeName() 363 (*format)(uptr, sizeof(usize) - (size_t)(uptr - usize), length); in pwgFormatSizeName() 376 snprintf(keyword, keysize, "%s_%s_%s", prefix, name, usize); in pwgFormatSizeName()
|
/external/tpm2/ |
D | TpmFail.c | 116 UINT32 usize; in UnmarshalHeader() local 119 || UINT32_Unmarshal(&usize, buffer, size) != TPM_RC_SUCCESS in UnmarshalHeader() 123 header->size = usize; in UnmarshalHeader()
|
/external/v8/src/runtime/ |
D | runtime-atomics.cc | 580 uint32_t usize = NumberToUint32(*size); in RUNTIME_FUNCTION() local 581 return isolate->heap()->ToBoolean(AtomicIsLockFree(usize)); in RUNTIME_FUNCTION()
|
/external/python/cpython2/Lib/test/ |
D | test_sys.py | 755 usize = len(u'\0'.encode('unicode-internal')) 760 check(s, size('PPlP') + usize * (len(s) + 1))
|
/external/python/cpython2/Objects/ |
D | unicodeobject.c | 3935 int usize = 0; in decode_mbcs() local 3945 usize = MultiByteToWideChar(CP_ACP, 0, s, size, NULL, 0); in decode_mbcs() 3946 if (usize == 0) { in decode_mbcs() 3954 *v = _PyUnicode_New(usize); in decode_mbcs() 3961 if (_PyUnicode_Resize(v, n + usize) < 0) in decode_mbcs() 3968 if (0 == MultiByteToWideChar(CP_ACP, 0, s, size, p, usize)) { in decode_mbcs()
|