Lines Matching full:tbase
3304 static void add_segment(mstate m, char* tbase, size_t tsize, flag_t mmapped) {
3321 init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE);
3327 m->seg.base = tbase;
3360 char* tbase = CMFAIL;
3406 tbase = base;
3417 tbase = br;
3422 if (tbase == CMFAIL) { /* Cope with partial failure */
3439 tbase = br;
3449 if (HAVE_MMAP && tbase == CMFAIL) { /* Try MMAP */
3455 tbase = mp;
3462 if (HAVE_MORECORE && tbase == CMFAIL) { /* Try noncontiguous MORECORE */
3474 tbase = br;
3481 if (tbase != CMFAIL) {
3487 m->seg.base = m->least_addr = tbase;
3493 init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE);
3497 init_top(m, mn, (size_t)((tbase + tsize) - (char*)mn) -TOP_FOOT_SIZE);
3504 while (sp != 0 && tbase != sp->base + sp->size)
3508 check_segment_merge(sp, tbase, tsize) &&
3515 if (tbase < m->least_addr)
3516 m->least_addr = tbase;
3518 while (sp != 0 && sp->base != tbase + tsize)
3522 check_segment_merge(sp, tbase, tsize) &&
3525 sp->base = tbase;
3527 return prepend_alloc(m, tbase, oldbase, nb);
3530 add_segment(m, tbase, tsize, mmap_flag);
4406 static mstate init_user_mstate(char* tbase, size_t tsize) {
4409 mchunkptr msp = align_as_chunk(tbase);
4414 m->seg.base = m->least_addr = tbase;
4421 init_top(m, mn, (size_t)((tbase + tsize) - (char*)mn) - TOP_FOOT_SIZE);
4435 char* tbase = (char*)(CALL_MMAP(tsize));
4436 if (tbase != CMFAIL) {
4437 m = init_user_mstate(tbase, tsize);