/glibc-2.36/malloc/ |
D | arena.c | 587 long new_size; in grow_heap() local 590 new_size = (long) h->size + diff; in grow_heap() 591 if ((unsigned long) new_size > (unsigned long) max_size) in grow_heap() 594 if ((unsigned long) new_size > h->mprotect_size) in grow_heap() 597 (unsigned long) new_size - h->mprotect_size, in grow_heap() 601 h->mprotect_size = new_size; in grow_heap() 604 h->size = new_size; in grow_heap() 614 long new_size; in shrink_heap() local 616 new_size = (long) h->size - diff; in shrink_heap() 617 if (new_size < (long) sizeof (*h)) in shrink_heap() [all …]
|
D | dynarray_emplace_enlarge.c | 54 size_t new_size; in __libc_dynarray_emplace_enlarge() local 55 if (INT_MULTIPLY_WRAPV (new_allocated, element_size, &new_size)) in __libc_dynarray_emplace_enlarge() 61 new_array = malloc (new_size); in __libc_dynarray_emplace_enlarge() 66 new_array = realloc (list->array, new_size); in __libc_dynarray_emplace_enlarge()
|
D | obstack.c | 249 long new_size; in _obstack_newchunk() local 256 new_size = (obj_size + length) + (obj_size >> 3) + h->alignment_mask + 100; in _obstack_newchunk() 257 if (new_size < h->chunk_size) in _obstack_newchunk() 258 new_size = h->chunk_size; in _obstack_newchunk() 261 new_chunk = CALL_CHUNKFUN (h, new_size); in _obstack_newchunk() 266 new_chunk->limit = h->chunk_limit = (char *) new_chunk + new_size; in _obstack_newchunk()
|
D | tst-interpose-aux.c | 190 realloc_internal (void *ptr, size_t new_size) in realloc_internal() argument 194 if (old_size >= new_size) in realloc_internal() 197 void *newptr = malloc_internal (new_size); in realloc_internal()
|
D | tst-mallocstate.c | 419 size_t new_size = task->allocation.size - 1; in do_test() local 420 task->allocation.data = xrealloc (task->allocation.data, new_size); in do_test() 421 if (new_size == 0) in do_test() 433 task->allocation.size = new_size; in do_test()
|
D | malloc.c | 1116 static mchunkptr mremap_chunk(mchunkptr p, size_t new_size); 3068 mremap_chunk (mchunkptr p, size_t new_size) in mremap_chunk() argument 3085 new_size = ALIGN_UP (new_size + offset + SIZE_SZ, pagesize); in mremap_chunk() 3088 if (total_size == new_size) in mremap_chunk() 3091 cp = (char *) __mremap ((char *) block, total_size, new_size, in mremap_chunk() 3097 madvise_thp (cp, new_size); in mremap_chunk() 3104 set_head (p, (new_size - offset) | IS_MMAPPED); in mremap_chunk() 3107 new = atomic_exchange_and_add (&mp_.mmapped_mem, new_size - size - offset) in mremap_chunk() 3108 + new_size - size - offset; in mremap_chunk()
|
/glibc-2.36/elf/ |
D | chroot_canon.c | 92 size_t new_size; in chroot_canon() local 102 new_size = rpath_limit - rpath; in chroot_canon() 104 new_size += end - start + 1; in chroot_canon() 106 new_size += PATH_MAX; in chroot_canon() 107 new_rpath = (char *) xrealloc (rpath, new_size); in chroot_canon() 109 rpath_limit = rpath + new_size; in chroot_canon()
|
D | dl-open.c | 120 unsigned int new_size = 0; /* 0 means no new allocation. */ in add_to_global_resize() local 133 if (__builtin_add_overflow (required_new_size, 8, &new_size)) in add_to_global_resize() 138 if (__builtin_mul_overflow (required_new_size, 2, &new_size)) in add_to_global_resize() 146 if (new_size > 0) in add_to_global_resize() 149 if (__builtin_mul_overflow (new_size, sizeof (struct link_map *), in add_to_global_resize() 160 ns->_ns_global_scope_alloc = new_size; in add_to_global_resize() 277 size_t new_size; in resize_scopes() local 288 new_size = array_length (imap->l_scope_mem); in resize_scopes() 293 new_size = imap->l_scope_max * 2; in resize_scopes() 295 malloc (new_size * sizeof (struct r_scope_elem *)); in resize_scopes() [all …]
|
D | tst-ldconfig-bad-aux-cache.c | 77 long int size, new_size, i; in do_test() local 94 new_size = size * i / 4; in do_test() 95 if (truncate (path, new_size)) in do_test()
|
D | dl-close.c | 367 size_t new_size; in _dl_close_worker() local 376 new_size = SCOPE_ELEMS (imap); in _dl_close_worker() 381 new_size = imap->l_scope_max; in _dl_close_worker() 383 malloc (new_size * sizeof (struct r_scope_elem *)); in _dl_close_worker() 430 imap->l_scope_max = new_size; in _dl_close_worker()
|
/glibc-2.36/hurd/ |
D | hurdmalloc.c | 314 realloc (void *old_base, size_t new_size) in realloc() argument 323 return malloc (new_size); in realloc() 351 if (new_size <= old_size in realloc() 352 && new_size > (((old_size + HEADER_SIZE) >> 1) - HEADER_SIZE)) in realloc() 360 new_base = malloc(new_size); in realloc() 363 (int) (old_size < new_size ? old_size : new_size)); in realloc() 365 if (new_base || new_size == 0) in realloc()
|
/glibc-2.36/intl/ |
D | localealias.c | 330 size_t new_size = (string_space_max in read_alias_file() local 333 char *new_pool = (char *) realloc (string_space, new_size); in read_alias_file() 349 string_space_max = new_size; in read_alias_file() 397 size_t new_size; in extend_alias_table() local 400 new_size = maxmap == 0 ? 100 : 2 * maxmap; in extend_alias_table() 401 new_map = (struct alias_map *) realloc (map, (new_size in extend_alias_table() 408 maxmap = new_size; in extend_alias_table()
|
/glibc-2.36/libio/ |
D | wstrops.c | 92 size_t new_size = 2 * old_wblen + 100; in _IO_wstr_overflow() local 94 if (__glibc_unlikely (new_size < old_wblen) in _IO_wstr_overflow() 95 || __glibc_unlikely (new_size > SIZE_MAX / sizeof (wchar_t))) in _IO_wstr_overflow() 98 new_buf = malloc (new_size * sizeof (wchar_t)); in _IO_wstr_overflow() 112 __wmemset (new_buf + old_wblen, L'\0', new_size - old_wblen); in _IO_wstr_overflow() 114 _IO_wsetb (fp, new_buf, new_buf + new_size, 1); in _IO_wstr_overflow()
|
D | strops.c | 103 size_t new_size = 2 * old_blen + 100; in _IO_str_overflow() local 104 if (new_size < old_blen) in _IO_str_overflow() 106 new_buf = malloc (new_size); in _IO_str_overflow() 119 memset (new_buf + old_blen, '\0', new_size - old_blen); in _IO_str_overflow() 121 _IO_setb (fp, new_buf, new_buf + new_size, 1); in _IO_str_overflow()
|
D | wgenops.c | 146 size_t new_size; in libc_hidden_def() local 150 new_size = 2 * old_size; in libc_hidden_def() 151 new_buf = (wchar_t *) malloc (new_size * sizeof (wchar_t)); in libc_hidden_def() 154 __wmemcpy (new_buf + (new_size - old_size), in libc_hidden_def() 157 _IO_wsetg (fp, new_buf, new_buf + (new_size - old_size), in libc_hidden_def() 158 new_buf + new_size); in libc_hidden_def()
|
D | genops.c | 1008 size_t new_size; in libc_hidden_def() local 1011 new_size = 2 * old_size; in libc_hidden_def() 1012 new_buf = (char *) malloc (new_size); in libc_hidden_def() 1015 memcpy (new_buf + (new_size - old_size), fp->_IO_read_base, in libc_hidden_def() 1018 _IO_setg (fp, new_buf, new_buf + (new_size - old_size), in libc_hidden_def() 1019 new_buf + new_size); in libc_hidden_def()
|
/glibc-2.36/argp/ |
D | argp-fmtstream.c | 381 size_t new_size = old_size + amount; in __argp_fmtstream_ensure() local 384 if (new_size < old_size || ! (new_buf = realloc (fs->buf, new_size))) in __argp_fmtstream_ensure() 391 fs->end = new_buf + new_size; in __argp_fmtstream_ensure()
|
/glibc-2.36/locale/programs/ |
D | charmap.c | 902 size_t new_size = result->nwidth_rules + 32; in new_width() local 905 (new_size in new_width() 912 result->nwidth_rules_max = new_size; in new_width()
|
/glibc-2.36/ChangeLog.old/ |
D | ChangeLog.17 | 11567 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE 14120 * malloc/arena.c (grow_heap): When growing bail even if new_size
|