Lines Matching refs:top

527 #define top            (av_[2])          /* The topmost chunk */  macro
741 if (p != top)
742 assert((char*)p + sz <= (char*)top);
772 assert (next == top || inuse(next));
804 if (next == top)
1074 mchunkptr old_top = top; /* Record state of old top */
1102 set_head(top, top_size | PREV_INUSE);
1132 top = (mchunkptr)brk;
1134 set_head(top, top_size | PREV_INUSE);
1145 set_head(top, PREV_INUSE); /* will force null return from malloc */
1168 assert(((unsigned long)((char*)top + top_size) & (pagesz - 1)) == 0);
1458 if ( (remainder_size = chunksize(top) - nb) < (long)MINSIZE)
1470 if ( (remainder_size = chunksize(top) - nb) < (long)MINSIZE)
1474 victim = top;
1476 top = chunk_at_offset(victim, nb);
1477 set_head(top, remainder_size | PREV_INUSE);
1551 if (next == top) /* merge with top */
1564 top = p;
1725 if (next == top || !inuse(next))
1730 if (next == top)
1735 top = chunk_at_offset(oldp, nb);
1736 set_head(top, (newsize - nb) | PREV_INUSE);
1768 if (next == top)
1777 top = chunk_at_offset(newp, nb);
1778 set_head(top, (newsize - nb) | PREV_INUSE);
2069 mchunkptr oldtop = top;
2070 INTERNAL_SIZE_T oldtopsize = chunksize(top);
2169 top_size = chunksize(top);
2179 if (current_brk != (char*)(top) + top_size)
2190 top_size = current_brk - (char*)top;
2194 set_head(top, top_size | PREV_INUSE);
2196 check_chunk(top);
2203 set_head(top, (top_size - extra) | PREV_INUSE);
2205 check_chunk(top);
2262 INTERNAL_SIZE_T avail = chunksize(top); in malloc_update_mallinfo()
2273 q < top && inuse(q) && (long)(chunksize(q)) >= (long)MINSIZE; in malloc_update_mallinfo()
2287 current_mallinfo.keepcost = chunksize(top); in malloc_update_mallinfo()