Lines Matching refs:top_size
1710 INTERNAL_SIZE_T top_size; /* new size of top chunk */ in malloc_extend_top() local
1741 top_size = sbrk_size + old_top_size; in malloc_extend_top()
1742 set_head(top, top_size | PREV_INUSE); in malloc_extend_top()
1781 top_size = new_brk - brk + correction; in malloc_extend_top()
1782 set_head(top, top_size | PREV_INUSE); in malloc_extend_top()
1821 assert(((unsigned long)((char*)top + top_size) & (pagesz - 1)) == 0 in malloc_extend_top()
2860 long top_size; /* Amount of top-most memory */ in malloc_trim() local
2869 top_size = chunksize(top); in malloc_trim()
2870 extra = ((top_size - pad - MINSIZE + (pagesz-1)) / pagesz - 1) * pagesz; in malloc_trim()
2882 if (current_brk != (char*)(top) + top_size) in malloc_trim()
2896 top_size = current_brk - (char*)top; in malloc_trim()
2897 if (top_size >= (long)MINSIZE) /* if not, we are very very dead! */ in malloc_trim()
2900 set_head(top, top_size | PREV_INUSE); in malloc_trim()
2910 set_head(top, (top_size - extra) | PREV_INUSE); in malloc_trim()