Lines Matching refs:max_size

155   size_t max_size = heap_max_size ();  in heap_for_ptr()  local
156 return PTR_ALIGN_DOWN (ptr, max_size); in heap_for_ptr()
489 size_t max_size = heap_max_size (); in alloc_new_heap() local
493 else if (size + top_pad <= max_size) in alloc_new_heap()
495 else if (size > max_size) in alloc_new_heap()
498 size = max_size; in alloc_new_heap()
508 p2 = (char *) MMAP (aligned_heap_area, max_size, PROT_NONE, mmap_flags); in alloc_new_heap()
510 if (p2 != MAP_FAILED && ((unsigned long) p2 & (max_size - 1))) in alloc_new_heap()
512 __munmap (p2, max_size); in alloc_new_heap()
518 p1 = (char *) MMAP (0, max_size << 1, PROT_NONE, mmap_flags); in alloc_new_heap()
521 p2 = (char *) (((unsigned long) p1 + (max_size - 1)) in alloc_new_heap()
522 & ~(max_size - 1)); in alloc_new_heap()
527 aligned_heap_area = p2 + max_size; in alloc_new_heap()
528 __munmap (p2 + max_size, max_size - ul); in alloc_new_heap()
534 p2 = (char *) MMAP (0, max_size, PROT_NONE, mmap_flags); in alloc_new_heap()
538 if ((unsigned long) p2 & (max_size - 1)) in alloc_new_heap()
540 __munmap (p2, max_size); in alloc_new_heap()
547 __munmap (p2, max_size); in alloc_new_heap()
586 size_t max_size = heap_max_size (); in grow_heap() local
591 if ((unsigned long) new_size > (unsigned long) max_size) in grow_heap()
648 size_t max_size = heap_max_size (); in heap_trim() local
665 assert (new_size > 0 && new_size < max_size); in heap_trim()
666 if (new_size + (max_size - prev_heap->size) < pad + MINSIZE in heap_trim()
671 if ((char *) heap + max_size == aligned_heap_area) in heap_trim()
673 __munmap (heap, max_size); in heap_trim()