Lines Matching refs:tsize
2640 size_t tsize = chunksize(t); in do_check_tree() local
2642 compute_tree_index(tsize, idx); in do_check_tree()
2644 assert(tsize >= MIN_LARGE_SIZE); in do_check_tree()
2645 assert(tsize >= minsize_for_tree_index(idx)); in do_check_tree()
2646 assert((idx == NTREEBINS-1) || (tsize < minsize_for_tree_index((idx+1)))); in do_check_tree()
2651 assert(chunksize(u) == tsize); in do_check_tree()
3276 size_t tsize = m->topsize += qsize; in prepend_alloc() local
3278 q->head = tsize | PINUSE_BIT; in prepend_alloc()
3304 static void add_segment(mstate m, char* tbase, size_t tsize, flag_t mmapped) { in add_segment() argument
3321 init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE); in add_segment()
3328 m->seg.size = tsize; in add_segment()
3361 size_t tsize = 0; in sys_alloc() local
3407 tsize = asize; in sys_alloc()
3418 tsize = asize; in sys_alloc()
3440 tsize = asize; in sys_alloc()
3456 tsize = rsize; in sys_alloc()
3475 tsize = ssize; in sys_alloc()
3483 if ((m->footprint += tsize) > m->max_footprint) in sys_alloc()
3488 m->seg.size = tsize; in sys_alloc()
3493 init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE); in sys_alloc()
3497 init_top(m, mn, (size_t)((tbase + tsize) - (char*)mn) -TOP_FOOT_SIZE); in sys_alloc()
3508 check_segment_merge(sp, tbase, tsize) && in sys_alloc()
3511 sp->size += tsize; in sys_alloc()
3512 init_top(m, m->top, m->topsize + tsize); in sys_alloc()
3518 while (sp != 0 && sp->base != tbase + tsize) in sys_alloc()
3522 check_segment_merge(sp, tbase, tsize) && in sys_alloc()
3526 sp->size += tsize; in sys_alloc()
3530 add_segment(m, tbase, tsize, mmap_flag); in sys_alloc()
4247 size_t tsize = fm->topsize += psize; in dlfree() local
4249 p->head = tsize | PINUSE_BIT; in dlfree()
4254 if (should_trim(fm, tsize)) in dlfree()
4406 static mstate init_user_mstate(char* tbase, size_t tsize) { in init_user_mstate() argument
4415 m->seg.size = m->footprint = m->max_footprint = tsize; in init_user_mstate()
4421 init_top(m, mn, (size_t)((tbase + tsize) - (char*)mn) - TOP_FOOT_SIZE); in init_user_mstate()
4434 size_t tsize = granularity_align(rs); in create_mspace() local
4435 char* tbase = (char*)(CALL_MMAP(tsize)); in create_mspace()
4437 m = init_user_mstate(tbase, tsize); in create_mspace()
4648 size_t tsize = fm->topsize += psize; in mspace_free() local
4650 p->head = tsize | PINUSE_BIT; in mspace_free()
4655 if (should_trim(fm, tsize)) in mspace_free()