Lines Matching refs:size_t
73 malloc(size_t n);
74 calloc(size_t n_elements, size_t element_size);
76 realloc(void* p, size_t n);
77 memalign(size_t alignment, size_t n);
78 valloc(size_t n);
83 independent_calloc(size_t n_elements, size_t size, void* chunks[]);
84 independent_comalloc(size_t n_elements, size_t sizes[], void* chunks[]);
85 pvalloc(size_t n);
86 malloc_trim(size_t pad);
93 Supported size_t representation: 4 or 8 bytes
94 Note that size_t is allowed to be 4 bytes even if pointers are 8.
97 Alignment: 2 * sizeof(size_t) (default)
98 (i.e., 8 byte alignment with 4byte size_t). This suffices for
122 sizeof(size_t) bytes plus the remainder from a system page (the
125 Maximum allocated size: 4-byte size_t: 2^32 minus about two pages
126 8-byte size_t: 2^64 minus about two pages
128 It is assumed that (possibly signed) size_t values suffice to
130 that `size_t' may be defined on a system as either a signed or
133 Additionally, even when size_t is unsigned, sbrk (which is by
135 arguments, and may not be able to handle size_t-wide arguments
173 INTERNAL_SIZE_T size_t
211 #include <stddef.h> /* for size_t */
318 # define tidx2usize(idx) (((size_t) idx) * MALLOC_ALIGNMENT + MINSIZE - SIZE_SZ)
350 ((__typeof (ptr)) ((((size_t) pos) >> 12) ^ ((size_t) ptr)))
424 void *tag_new_zero_region (void *ptr, size_t size)
430 void *tag_region (void *ptr, size_t size)
459 tag_region (void *ptr, size_t size)
467 tag_new_zero_region (void *ptr, size_t size)
598 malloc(size_t n)
605 systems.) On most systems, size_t is an unsigned type, so calls
609 representable value of a size_t.
611 void* __libc_malloc(size_t);
629 calloc(size_t n_elements, size_t element_size);
633 void* __libc_calloc(size_t, size_t);
636 realloc(void* p, size_t n)
662 void* __libc_realloc(void*, size_t);
666 memalign(size_t alignment, size_t n);
677 void* __libc_memalign(size_t, size_t);
681 valloc(size_t n);
685 void* __libc_valloc(size_t);
718 pvalloc(size_t n);
722 void* __libc_pvalloc(size_t);
725 malloc_trim(size_t pad);
748 int __malloc_trim(size_t);
765 size_t __malloc_usable_size(void*);
790 posix_memalign(void **memptr, size_t alignment, size_t size);
794 int __posix_memalign(void **, size_t, size_t);
1108 static void* _int_malloc(mstate, size_t);
1112 static void* _int_memalign(mstate, size_t, size_t);
1114 static void* _mid_memalign(size_t, size_t, void *);
1121 static mchunkptr mremap_chunk(mchunkptr p, size_t new_size);
1341 checked_request2size (size_t req, size_t *sz) __nonnull (1)
1359 ~(size_t)(__MTAG_GRANULE_SIZE - 1);
1499 pointers and size_t.)
1798 global_max_fast = (((size_t) (s) <= MALLOC_ALIGN_MASK - SIZE_SZ) \
1910 size_t tcache_bins;
1911 size_t tcache_max_bytes;
1913 size_t tcache_count;
1916 size_t tcache_unsorted_limit;
1988 static int systrim (size_t, mstate);
2003 alloc_perturb (char *p, size_t n)
2010 free_perturb (char *p, size_t n)
2272 /* internal size_t must be no wider than pointer type */
2420 sysmalloc_mmap (INTERNAL_SIZE_T nb, size_t pagesize, int extra_flags, mstate av)
2509 INTERNAL_SIZE_T old_size, size_t minsize,
2510 size_t pagesize, int extra_flags, mstate av)
2568 size_t pagesize = GLRO (dl_pagesize);
2629 size_t old_heap_size;
2721 negative. Note that since mmap takes size_t arg, it may succeed
2977 systrim (size_t pad, mstate av)
3045 size_t pagesize = GLRO (dl_pagesize);
3052 size_t total_size = prev_size (p) + size;
3074 mremap_chunk (mchunkptr p, size_t new_size)
3076 size_t pagesize = GLRO (dl_pagesize);
3085 size_t total_size = offset + size;
3175 tcache_put (mchunkptr chunk, size_t tc_idx)
3191 tcache_get (size_t tc_idx)
3239 const size_t bytes = sizeof (tcache_perthread_struct);
3286 __libc_malloc (size_t bytes)
3298 size_t tbytes;
3304 size_t tc_idx = csize2tidx (tbytes);
3399 __libc_realloc (void *oldmem, size_t bytes)
3507 size_t sz = memsize (oldp);
3519 __libc_memalign (size_t alignment, size_t bytes)
3529 _mid_memalign (size_t alignment, size_t bytes, void *address)
3554 size_t a = MALLOC_ALIGNMENT * 2;
3590 __libc_valloc (size_t bytes)
3596 size_t pagesize = GLRO (dl_pagesize);
3601 __libc_pvalloc (size_t bytes)
3607 size_t pagesize = GLRO (dl_pagesize);
3608 size_t rounded_bytes;
3623 __libc_calloc (size_t n, size_t elem_size)
3770 _int_malloc (mstate av, size_t bytes)
3791 size_t tcache_unsorted_count; /* count of unsorted chunks processed */
3856 size_t victim_idx = fastbin_index (chunksize (victim));
3863 size_t tc_idx = csize2tidx (nb);
3921 size_t tc_idx = csize2tidx (nb);
3983 size_t tc_idx = csize2tidx (nb);
4449 size_t tc_idx = csize2tidx (size);
4457 2^<size_t> chance), so verify it's not an unlikely
4462 size_t cnt = 0;
4896 size_t sz = memsize (oldp);
4940 _int_memalign (mstate av, size_t alignment, size_t bytes)
5038 mtrim (mstate av, size_t pad)
5043 const size_t ps = GLRO (dl_pagesize);
5045 const size_t psm1 = ps - 1;
5096 __malloc_trim (size_t s)
5122 static size_t
5136 size_t
5152 size_t i;
5311 do_set_trim_threshold (size_t value)
5321 do_set_top_pad (size_t value)
5331 do_set_mmap_threshold (size_t value)
5365 do_set_arena_test (size_t value)
5373 do_set_arena_max (size_t value)
5382 do_set_tcache_max (size_t value)
5395 do_set_tcache_count (size_t value)
5407 do_set_tcache_unsorted_limit (size_t value)
5417 do_set_mxfast (size_t value)
5430 do_set_hugetlb (size_t value)
5465 /* Many of these helper functions take a size_t. We do not worry
5467 very large size_t values and the helpers have sufficient range
5569 argument to sbrk/MORECORE. If size_t is unsigned, then it cannot
5570 actually be size_t, because sbrk supports negative args, so it is
5571 normally the signed type of the same width as size_t (sometimes
5674 __posix_memalign (void **memptr, size_t alignment, size_t size)
5712 size_t total_nblocks = 0;
5713 size_t total_nfastblocks = 0;
5714 size_t total_avail = 0;
5715 size_t total_fastavail = 0;
5716 size_t total_system = 0;
5717 size_t total_max_system = 0;
5718 size_t total_aspace = 0;
5719 size_t total_aspace_mprotect = 0;
5734 size_t nblocks = 0;
5735 size_t nfastblocks = 0;
5736 size_t avail = 0;
5737 size_t fastavail = 0;
5740 size_t from;
5741 size_t to;
5742 size_t total;
5743 size_t count;
5755 for (size_t i = 0; i < NFASTBINS; ++i)
5760 size_t nthissize = 0;
5761 size_t thissize = chunksize (p);
5788 for (size_t i = 1; i < NBINS; ++i)
5792 sizes[NFASTBINS - 1 + i].from = ~((size_t) 0);
5799 size_t r_size = chunksize_nomask (r);
5816 size_t heap_size = 0;
5817 size_t heap_mprotect_size = 0;
5818 size_t heap_count = 0;
5841 for (size_t i = 0; i < nsizes; ++i)