Lines Matching refs:top
2642 mchunkptr top; member
2694 #define is_initialized(M) ((M)->top != 0)
3324 if (p != m->dv && p != m->top) { in do_check_free_chunk()
3330 assert (next == m->top || is_inuse(next)); in do_check_free_chunk()
3486 q != m->top && q->head != FENCEPOST_HEAD) { in traverse_and_check()
3524 if (m->top != 0) { /* check top chunk */ in do_check_malloc_state()
3525 do_check_top_chunk(m, m->top); in do_check_malloc_state()
3528 assert(bin_find(m, m->top) == 0); in do_check_malloc_state()
3553 q != m->top && q->head != FENCEPOST_HEAD) { in internal_mallinfo()
3597 q != m->top && q->head != FENCEPOST_HEAD) { in internal_malloc_stats()
3955 m->top = p; in init_top()
3985 m->top = m->dv = 0; in reset_on_error()
4007 if (oldfirst == m->top) { in prepend_alloc()
4009 m->top = q; in prepend_alloc()
4037 char* old_top = (char*)m->top; in add_segment()
4084 check_top_chunk(m, m->top); in add_segment()
4139 msegmentptr ss = (m->top == 0)? 0 : segment_holding(m, (char*)m->top); in sys_alloc()
4259 segment_holds(sp, m->top)) { /* append */ in sys_alloc()
4261 init_top(m, m->top, m->topsize + tsize); in sys_alloc()
4284 mchunkptr p = m->top; in sys_alloc()
4285 mchunkptr r = m->top = chunk_plus_offset(p, nb); in sys_alloc()
4288 check_top_chunk(m, m->top); in sys_alloc()
4359 msegmentptr sp = segment_holding(m, (char*)m->top); in sys_trim()
4396 init_top(m, m->top, m->topsize - released); in sys_trim()
4397 check_top_chunk(m, m->top); in sys_trim()
4447 if (next == m->top) { in dispose_chunk()
4449 m->top = p; in dispose_chunk()
4713 mchunkptr p = gm->top; in dlmalloc()
4714 mchunkptr r = gm->top = chunk_plus_offset(p, nb); in dlmalloc()
4718 check_top_chunk(gm, gm->top); in dlmalloc()
4787 if (next == fm->top) { in dlfree()
4789 fm->top = p; in dlfree()
4884 else if (next == m->top) { /* extend into top */ in try_realloc_chunk()
4891 m->top = newtop; in try_realloc_chunk()
5201 mchunkptr top = m->top; in internal_inspect_all() local
5225 if (q == top) in internal_inspect_all()
5471 check_top_chunk(m, m->top); in init_user_mstate()
5647 mchunkptr p = ms->top; in mspace_malloc()
5648 mchunkptr r = ms->top = chunk_plus_offset(p, nb); in mspace_malloc()
5652 check_top_chunk(ms, ms->top); in mspace_malloc()
5714 if (next == fm->top) { in mspace_free()
5716 fm->top = p; in mspace_free()