Lines Matching full:tbase
3996 static void add_segment(mstate m, char* tbase, size_t tsize, flag_t mmapped) {
4013 init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE);
4019 m->seg.base = tbase;
4052 char* tbase = CMFAIL;
4123 tbase = base;
4134 tbase = br;
4139 if (tbase == CMFAIL) { /* Cope with partial failure */
4156 tbase = br;
4166 if (HAVE_MMAP && tbase == CMFAIL) { /* Try MMAP */
4169 tbase = mp;
4175 if (HAVE_MORECORE && tbase == CMFAIL) { /* Try noncontiguous MORECORE */
4186 tbase = br;
4193 if (tbase != CMFAIL) {
4199 if (m->least_addr == 0 || tbase < m->least_addr)
4200 m->least_addr = tbase;
4201 m->seg.base = tbase;
4209 init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE);
4215 init_top(m, mn, (size_t)((tbase + tsize) - (char*)mn) -TOP_FOOT_SIZE);
4223 while (sp != 0 && tbase != sp->base + sp->size)
4233 if (tbase < m->least_addr)
4234 m->least_addr = tbase;
4236 while (sp != 0 && sp->base != tbase + tsize)
4242 sp->base = tbase;
4244 return prepend_alloc(m, tbase, oldbase, nb);
4247 add_segment(m, tbase, tsize, mmap_flag);
5423 static mstate init_user_mstate(char* tbase, size_t tsize) {
5426 mchunkptr msp = align_as_chunk(tbase);
5431 m->seg.base = m->least_addr = tbase;
5441 init_top(m, mn, (size_t)((tbase + tsize) - (char*)mn) - TOP_FOOT_SIZE);
5455 char* tbase = (char*)(CALL_MMAP(tsize));
5456 if (tbase != CMFAIL) {
5457 m = init_user_mstate(tbase, tsize);