Lines Matching refs:oldp
3773 mchunkptr oldp; /* chunk corresponding to oldmem */
3780 mchunkptr next; /* next contiguous chunk after oldp */
3781 mchunkptr prev; /* previous contiguous chunk before oldp */
3807 oldp = mem2chunk(oldmem);
3808 oldsize = chunksize(oldp);
3810 check_inuse_chunk(oldp);
3812 if (!chunk_is_mmapped(oldp)) {
3816 newp = oldp;
3824 next = chunk_at_offset(oldp, oldsize);
3830 set_head_size(oldp, nb);
3831 av->top = chunk_at_offset(oldp, nb);
3833 return chunk2mem(oldp);
3836 else if (!prev_inuse(oldp)) { /* Shift backwards + top */
3837 prev = prev_chunk(oldp);
3854 newp = oldp;
3858 else if (!prev_inuse(oldp)) { /* Forward + backward */
3859 prev = prev_chunk(oldp);
3870 else if (!prev_inuse(oldp)) { /* Backward only */
3871 prev = prev_chunk(oldp);
3881 if (newp != oldp) {
3897 Avoid copy if newp is next chunk after oldp.
3901 newp = oldp;
3977 INTERNAL_SIZE_T offset = oldp->prev_size;
3989 cp = (char*)mremap((char*)oldp - offset, oldsize + offset, newsize, 1);