Lines Matching refs:mchunkptr
1605 typedef struct malloc_chunk* mchunkptr;
1632 #define mem2chunk(mem) ((mchunkptr)((char*)(mem) - TWO_SIZE_T_SIZES))
1634 #define align_as_chunk(A) (mchunkptr)((A) + align_offset(chunk2mem(A)))
1675 #define chunk_plus_offset(p, s) ((mchunkptr)(((char*)(p)) + (s)))
1676 #define chunk_minus_offset(p, s) ((mchunkptr)(((char*)(p)) - (s)))
1679 #define next_chunk(p) ((mchunkptr)( ((char*)(p)) + ((p)->head & ~INUSE_BITS)))
1680 #define prev_chunk(p) ((mchunkptr)( ((char*)(p)) - ((p)->prev_foot) ))
1686 #define get_foot(p, s) (((mchunkptr)((char*)(p) + (s)))->prev_foot)
1687 #define set_foot(p, s) (((mchunkptr)((char*)(p) + (s)))->prev_foot = (s))
2018 mchunkptr dv;
2019 mchunkptr top;
2022 mchunkptr smallbins[(NSMALLBINS+1)*2];
2211 static void do_check_any_chunk(mstate m, mchunkptr p);
2212 static void do_check_top_chunk(mstate m, mchunkptr p);
2213 static void do_check_mmapped_chunk(mstate m, mchunkptr p);
2214 static void do_check_inuse_chunk(mstate m, mchunkptr p);
2215 static void do_check_free_chunk(mstate m, mchunkptr p);
2221 static int bin_find(mstate m, mchunkptr x);
2412 ((mchunkptr)(((char*)(p)) + (s)))->head |= PINUSE_BIT)
2417 ((mchunkptr)(((char*)(p)) + (s)))->head |= PINUSE_BIT)
2427 (((mchunkptr)((char*)(p) + (s)))->prev_foot = ((size_t)(M) ^ mparams.magic))
2430 ((mstate)(((mchunkptr)((char*)(p) +\
2435 (((mchunkptr)(((char*)(p)) + (s)))->head |= PINUSE_BIT), \
2440 (((mchunkptr)(((char*)(p)) + (s)))->head |= PINUSE_BIT),\
2554 static void do_check_any_chunk(mstate m, mchunkptr p) {
2560 static void do_check_top_chunk(mstate m, mchunkptr p) {
2574 static void do_check_mmapped_chunk(mstate m, mchunkptr p) {
2588 static void do_check_inuse_chunk(mstate m, mchunkptr p) {
2599 static void do_check_free_chunk(mstate m, mchunkptr p) {
2601 mchunkptr next = chunk_plus_offset(p, sz);
2624 mchunkptr p = mem2chunk(mem);
2649 do_check_any_chunk(m, ((mchunkptr)u));
2700 mchunkptr p = b->bk;
2707 mchunkptr q;
2722 static int bin_find(mstate m, mchunkptr x) {
2728 mchunkptr p = b;
2764 mchunkptr q = align_as_chunk(s->base);
2765 mchunkptr lastq = 0;
2831 mchunkptr q = align_as_chunk(s->base);
2873 mchunkptr q = align_as_chunk(s->base);
2904 mchunkptr B = smallbin_at(M, I);\
2905 mchunkptr F = B;\
2922 mchunkptr F = P->fd;\
2923 mchunkptr B = P->bk;\
2942 mchunkptr F = P->fd;\
2962 mchunkptr DV = M->dv;\
3160 mchunkptr p = (mchunkptr)(mm + offset);
3180 static mchunkptr mmap_resize(mstate m, mchunkptr oldp, size_t nb) {
3196 mchunkptr newp = (mchunkptr)(cp + offset);
3217 static void init_top(mstate m, mchunkptr p, size_t psize) {
3220 p = (mchunkptr)((char*)p + offset);
3263 mchunkptr p = align_as_chunk(newbase);
3264 mchunkptr oldfirst = align_as_chunk(oldbase);
3266 mchunkptr q = chunk_plus_offset(p, nb);
3314 mchunkptr sp = (mchunkptr)csp;
3316 mchunkptr tnext = chunk_plus_offset(sp, ssize);
3317 mchunkptr p = tnext;
3321 init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE);
3334 mchunkptr nextp = chunk_plus_offset(p, SIZE_T_SIZE);
3346 mchunkptr q = (mchunkptr)old_top;
3348 mchunkptr tn = chunk_plus_offset(q, psize);
3493 init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE);
3496 mchunkptr mn = next_chunk(mem2chunk(m));
3536 mchunkptr p = m->top;
3537 mchunkptr r = m->top = chunk_plus_offset(p, nb);
3562 mchunkptr p = align_as_chunk(base);
3712 mchunkptr r = chunk_plus_offset(v, nb);
3751 mchunkptr r = chunk_plus_offset(v, nb);
3778 mchunkptr oldp = mem2chunk(oldmem);
3780 mchunkptr next = chunk_plus_offset(oldp, oldsize);
3781 mchunkptr newp = 0;
3795 mchunkptr remainder = chunk_plus_offset(newp, nb);
3805 mchunkptr newtop = chunk_plus_offset(oldp, nb);
3866 mchunkptr p = mem2chunk(mem);
3884 mchunkptr newp = (mchunkptr)pos;
3905 mchunkptr remainder = chunk_plus_offset(p, nb);
3948 mchunkptr p; /* corresponding chunk */
3951 mchunkptr array_chunk; /* chunk for malloced ptr array */
4096 mchunkptr b, p;
4110 mchunkptr b, p, r;
4153 mchunkptr p = gm->dv;
4155 mchunkptr r = gm->dv = chunk_plus_offset(p, nb);
4173 mchunkptr p = gm->top;
4174 mchunkptr r = gm->top = chunk_plus_offset(p, nb);
4201 mchunkptr p = mem2chunk(mem);
4215 mchunkptr next = chunk_plus_offset(p, psize);
4226 mchunkptr prev = chunk_minus_offset(p, prevsize);
4389 mchunkptr p = mem2chunk(mem);
4408 mchunkptr mn;
4409 mchunkptr msp = align_as_chunk(tbase);
4503 mchunkptr b, p;
4517 mchunkptr b, p, r;
4560 mchunkptr p = ms->dv;
4562 mchunkptr r = ms->dv = chunk_plus_offset(p, nb);
4580 mchunkptr p = ms->top;
4581 mchunkptr r = ms->top = chunk_plus_offset(p, nb);
4602 mchunkptr p = mem2chunk(mem);
4616 mchunkptr next = chunk_plus_offset(p, psize);
4627 mchunkptr prev = chunk_minus_offset(p, prevsize);
4722 mchunkptr p = mem2chunk(oldmem);