Lines Matching refs:heap
46 /* A heap is a single contiguous memory region holding (coalesceable)
51 mstate ar_ptr; /* Arena for this heap. */
52 struct _heap_info *prev; /* Previous heap. */
79 /* find the heap and corresponding arena for a given ptr */
168 /* Print the complete contents of a single heap to stderr. */
172 dump_heap(heap_info *heap)
174 dump_heap(heap) heap_info *heap;
180 fprintf(stderr, "Heap %p, size %10lx:\n", heap, (long)heap->size);
181 ptr = (heap->ar_ptr != (mstate)(heap+1)) ?
182 (char*)(heap + 1) : (char*)(heap + 1) + sizeof(struct malloc_state);
187 if(p == top(heap->ar_ptr)) {
200 /* Delete a heap. */