Lines Matching refs:top
1178 #define top (bin_at(0)->fd) /* The topmost chunk */ macro
1383 if (p != top) in do_check_chunk()
1384 assert((char*)p + sz <= (char*)top); in do_check_chunk()
1410 assert (next == top || inuse(next)); in do_check_free_chunk()
1438 if (next == top) in do_check_inuse_chunk()
1712 mchunkptr old_top = top; /* Record state of old top */ in malloc_extend_top()
1742 set_head(top, top_size | PREV_INUSE); in malloc_extend_top()
1780 top = (mchunkptr)brk; in malloc_extend_top()
1782 set_head(top, top_size | PREV_INUSE); in malloc_extend_top()
1793 set_head(top, PREV_INUSE); /* will force null return from malloc */ in malloc_extend_top()
1821 assert(((unsigned long)((char*)top + top_size) & (pagesz - 1)) == 0 in malloc_extend_top()
2125 remainder_size = long_sub_size_t(chunksize(top), nb); in mALLOc()
2126 if (chunksize(top) < nb || remainder_size < (long)MINSIZE) in mALLOc()
2141 remainder_size = long_sub_size_t(chunksize(top), nb); in mALLOc()
2142 if (chunksize(top) < nb || remainder_size < (long)MINSIZE) in mALLOc()
2149 victim = top; in mALLOc()
2151 top = chunk_at_offset(victim, nb); in mALLOc()
2152 set_head(top, remainder_size | PREV_INUSE); in mALLOc()
2228 if (next == top) /* merge with top */ in fREe()
2241 top = p; in fREe()
2426 if (next == top || !inuse(next)) in rEALLOc()
2431 if (next == top) in rEALLOc()
2436 top = chunk_at_offset(oldp, nb); in rEALLOc()
2437 set_head(top, (newsize - nb) | PREV_INUSE); in rEALLOc()
2470 if (next == top) in rEALLOc()
2479 top = chunk_at_offset(newp, nb); in rEALLOc()
2480 set_head(top, (newsize - nb) | PREV_INUSE); in rEALLOc()
2765 oldtop = top; in cALLOc()
2766 oldtopsize = chunksize(top); in cALLOc()
2869 top_size = chunksize(top); in malloc_trim()
2882 if (current_brk != (char*)(top) + top_size) in malloc_trim()
2896 top_size = current_brk - (char*)top; in malloc_trim()
2900 set_head(top, top_size | PREV_INUSE); in malloc_trim()
2902 check_chunk(top); in malloc_trim()
2910 set_head(top, (top_size - extra) | PREV_INUSE); in malloc_trim()
2912 check_chunk(top); in malloc_trim()
2975 INTERNAL_SIZE_T avail = chunksize(top); in malloc_update_mallinfo()
2986 q < top && inuse(q) && (long)(chunksize(q)) >= (long)MINSIZE; in malloc_update_mallinfo()
3002 current_mallinfo.keepcost = chunksize(top); in malloc_update_mallinfo()