Lines Matching refs:tbase

3994 static void add_segment(mstate m, char* tbase, size_t tsize, flag_t mmapped) {  in add_segment()  argument
4011 init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE); in add_segment()
4017 m->seg.base = tbase; in add_segment()
4050 char* tbase = CMFAIL; in sys_alloc() local
4113 tbase = base; in sys_alloc()
4124 tbase = br; in sys_alloc()
4129 if (tbase == CMFAIL) { /* Cope with partial failure */ in sys_alloc()
4146 tbase = br; in sys_alloc()
4156 if (HAVE_MMAP && tbase == CMFAIL) { /* Try MMAP */ in sys_alloc()
4159 tbase = mp; in sys_alloc()
4165 if (HAVE_MORECORE && tbase == CMFAIL) { /* Try noncontiguous MORECORE */ in sys_alloc()
4176 tbase = br; in sys_alloc()
4183 if (tbase != CMFAIL) { in sys_alloc()
4189 if (m->least_addr == 0 || tbase < m->least_addr) in sys_alloc()
4190 m->least_addr = tbase; in sys_alloc()
4191 m->seg.base = tbase; in sys_alloc()
4199 init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE); in sys_alloc()
4205 init_top(m, mn, (size_t)((tbase + tsize) - (char*)mn) -TOP_FOOT_SIZE); in sys_alloc()
4213 while (sp != 0 && tbase != sp->base + sp->size) in sys_alloc()
4223 if (tbase < m->least_addr) in sys_alloc()
4224 m->least_addr = tbase; in sys_alloc()
4226 while (sp != 0 && sp->base != tbase + tsize) in sys_alloc()
4232 sp->base = tbase; in sys_alloc()
4234 return prepend_alloc(m, tbase, oldbase, nb); in sys_alloc()
4237 add_segment(m, tbase, tsize, mmap_flag); in sys_alloc()
5434 static mstate init_user_mstate(char* tbase, size_t tsize) { in init_user_mstate() argument
5437 mchunkptr msp = align_as_chunk(tbase); in init_user_mstate()
5442 m->seg.base = m->least_addr = tbase; in init_user_mstate()
5452 init_top(m, mn, (size_t)((tbase + tsize) - (char*)mn) - TOP_FOOT_SIZE); in init_user_mstate()
5466 char* tbase = (char*)(CALL_MMAP(tsize)); in create_mspace() local
5467 if (tbase != CMFAIL) { in create_mspace()
5468 m = init_user_mstate(tbase, tsize); in create_mspace()