Searched refs:heap (Results 1 – 4 of 4) sorted by relevance
/malloc/ |
A D | arena.c | 439 dump_heap (heap_info *heap) in dump_heap() argument 444 fprintf (stderr, "Heap %p, size %10lx:\n", heap, (long) heap->size); in dump_heap() 445 ptr = (heap->ar_ptr != (mstate) (heap + 1)) ? in dump_heap() 446 (char *) (heap + 1) : (char *) (heap + 1) + sizeof (struct malloc_state); in dump_heap() 644 mstate ar_ptr = heap->ar_ptr; in heap_trim() 651 while (top_chunk == chunk_at_offset (heap, sizeof (*heap))) in heap_trim() 653 prev_heap = heap->prev; in heap_trim() 667 + heap->pagesize) in heap_trim() 670 LIBC_PROBE (memory_heap_free, 2, heap, heap->size); in heap_trim() 674 heap = prev_heap; in heap_trim() [all …]
|
A D | memusagestat.c | 93 uint64_t heap; member 192 maxsize_heap = headent[1].heap; in main() 207 if (next.heap > maxsize_heap) in main() 208 maxsize_heap = next.heap; in main() 216 headent[1].heap = maxsize_heap; in main() 392 * (entry.heap + entry.stack)) in main() 405 * entry.heap) / maxsize_heap)); in main() 474 * (entry.heap + entry.stack)) in main() 484 * entry.heap) / maxsize_heap)); in main()
|
A D | memusage.c | 109 uint64_t heap; member 150 size_t heap in update_data() local 152 catomic_max (&peak_heap, heap); in update_data() 178 catomic_max (&peak_total, heap + current_stack); in update_data() 197 buffer[idx].heap = current_heap; in update_data() 287 first.heap = 0; in me() 838 first.heap = peak_heap; in dest()
|
A D | malloc.c | 2641 else if ((heap = new_heap (nb + (MINSIZE + sizeof (*heap)), mp_.top_pad))) in sysmalloc() 2644 heap->ar_ptr = av; in sysmalloc() 2648 top (av) = chunk_at_offset (heap, sizeof (*heap)); in sysmalloc() 2649 set_head (top (av), (heap->size - sizeof (*heap)) | PREV_INUSE); in sysmalloc() 3668 if (oldtopsize < (char *) heap + heap->mprotect_size - (char *) oldtop) in __libc_calloc() 3669 oldtopsize = (char *) heap + heap->mprotect_size - (char *) oldtop; in __libc_calloc() 4687 assert(heap->ar_ptr == av); in _int_free() 4688 heap_trim(heap, mp_.top_pad); in _int_free() 5825 heap_size += heap->size; in weak_alias() 5827 heap = heap->prev; in weak_alias() [all …]
|
Completed in 18 milliseconds