Lines Matching refs:top

530 #define top            (av_[2])          /* The topmost chunk */  macro
781 if (p != top)
782 assert((char*)p + sz <= (char*)top);
812 assert (next == top || inuse(next));
844 if (next == top)
1111 mchunkptr old_top = top; /* Record state of old top */
1139 set_head(top, top_size | PREV_INUSE);
1169 top = (mchunkptr)brk;
1171 set_head(top, top_size | PREV_INUSE);
1182 set_head(top, PREV_INUSE); /* will force null return from malloc */
1205 assert(((unsigned long)((char*)top + top_size) & (pagesz - 1)) == 0);
1495 if ( (remainder_size = chunksize(top) - nb) < (long)MINSIZE)
1507 if ( (remainder_size = chunksize(top) - nb) < (long)MINSIZE)
1511 victim = top;
1513 top = chunk_at_offset(victim, nb);
1514 set_head(top, remainder_size | PREV_INUSE);
1588 if (next == top) /* merge with top */
1601 top = p;
1762 if (next == top || !inuse(next))
1767 if (next == top)
1772 top = chunk_at_offset(oldp, nb);
1773 set_head(top, (newsize - nb) | PREV_INUSE);
1805 if (next == top)
1814 top = chunk_at_offset(newp, nb);
1815 set_head(top, (newsize - nb) | PREV_INUSE);
2112 mchunkptr oldtop = top;
2113 INTERNAL_SIZE_T oldtopsize = chunksize(top);
2212 top_size = chunksize(top);
2222 if (current_brk != (char*)(top) + top_size)
2233 top_size = current_brk - (char*)top;
2237 set_head(top, top_size | PREV_INUSE);
2239 check_chunk(top);
2246 set_head(top, (top_size - extra) | PREV_INUSE);
2248 check_chunk(top);
2305 INTERNAL_SIZE_T avail = chunksize(top); in malloc_update_mallinfo()
2316 q < top && inuse(q) && (long)(chunksize(q)) >= (long)MINSIZE; in malloc_update_mallinfo()
2330 current_mallinfo.keepcost = chunksize(top); in malloc_update_mallinfo()