Searched refs:new_size (Results 1 – 6 of 6) sorted by relevance
/malloc/ |
A 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()
|
A D | arena.c | 587 long new_size; in grow_heap() local 590 new_size = (long) h->size + diff; 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() 628 h->mprotect_size = new_size; in shrink_heap() 634 h->size = new_size; in shrink_heap() 662 assert (new_size > 0 && new_size < (long) (2 * MINSIZE)); in heap_trim() 664 new_size += prev_size (p); in heap_trim() [all …]
|
A 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()
|
A 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()
|
A 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()
|
A D | malloc.c | 1121 static mchunkptr mremap_chunk(mchunkptr p, size_t new_size); 3074 mremap_chunk (mchunkptr p, size_t new_size) in mremap_chunk() argument 3091 new_size = ALIGN_UP (new_size + offset + SIZE_SZ, pagesize); in mremap_chunk() 3094 if (total_size == new_size) in mremap_chunk() 3097 cp = (char *) __mremap ((char *) block, total_size, new_size, in mremap_chunk() 3103 madvise_thp (cp, new_size); in mremap_chunk() 3110 set_head (p, (new_size - offset) | IS_MMAPPED); in mremap_chunk() 3113 new = atomic_exchange_and_add (&mp_.mmapped_mem, new_size - size - offset) in mremap_chunk() 3114 + new_size - size - offset; in mremap_chunk()
|
Completed in 34 milliseconds