Lines Matching refs:psize
3113 size_t psize; in init_mparams() local
3120 psize = malloc_getpagesize; in init_mparams()
3121 gsize = ((DEFAULT_GRANULARITY != 0)? DEFAULT_GRANULARITY : psize); in init_mparams()
3126 psize = system_info.dwPageSize; in init_mparams()
3145 ((psize & (psize-SIZE_T_ONE)) != 0)) in init_mparams()
3148 mparams.page_size = psize; in init_mparams()
3853 size_t psize = mmsize - offset - MMAP_FOOT_PAD; in mmap_alloc() local
3856 p->head = psize; in mmap_alloc()
3857 mark_inuse_foot(m, p, psize); in mmap_alloc()
3858 chunk_plus_offset(p, psize)->head = FENCEPOST_HEAD; in mmap_alloc()
3859 chunk_plus_offset(p, psize+SIZE_T_SIZE)->head = 0; in mmap_alloc()
3891 size_t psize = newmmsize - offset - MMAP_FOOT_PAD; in mmap_resize() local
3892 newp->head = psize; in mmap_resize()
3893 mark_inuse_foot(m, newp, psize); in mmap_resize()
3894 chunk_plus_offset(newp, psize)->head = FENCEPOST_HEAD; in mmap_resize()
3895 chunk_plus_offset(newp, psize+SIZE_T_SIZE)->head = 0; in mmap_resize()
3912 static void init_top(mstate m, mchunkptr p, size_t psize) { in init_top() argument
3916 psize -= offset; in init_top()
3919 m->topsize = psize; in init_top()
3920 p->head = psize | PINUSE_BIT; in init_top()
3922 chunk_plus_offset(p, psize)->head = TOP_FOOT_SIZE; in init_top()
3960 size_t psize = (char*)oldfirst - (char*)p; in prepend_alloc() local
3962 size_t qsize = psize - nb; in prepend_alloc()
4041 size_t psize = csp - old_top; in add_segment() local
4042 mchunkptr tn = chunk_plus_offset(q, psize); in add_segment()
4043 set_free_with_pinuse(q, psize, tn); in add_segment()
4044 insert_chunk(m, q, psize); in add_segment()
4284 size_t psize = chunksize(p); in release_unused_segments() local
4286 if (!is_inuse(p) && (char*)p + psize >= base + size - TOP_FOOT_SIZE) { in release_unused_segments()
4304 insert_large_chunk(m, tp, psize); in release_unused_segments()
4387 static void dispose_chunk(mstate m, mchunkptr p, size_t psize) { in dispose_chunk() argument
4388 mchunkptr next = chunk_plus_offset(p, psize); in dispose_chunk()
4393 psize += prevsize + MMAP_FOOT_PAD; in dispose_chunk()
4394 if (CALL_MUNMAP((char*)p - prevsize, psize) == 0) in dispose_chunk()
4395 m->footprint -= psize; in dispose_chunk()
4399 psize += prevsize; in dispose_chunk()
4406 m->dvsize = psize; in dispose_chunk()
4407 set_free_with_pinuse(p, psize, next); in dispose_chunk()
4419 size_t tsize = m->topsize += psize; in dispose_chunk()
4429 size_t dsize = m->dvsize += psize; in dispose_chunk()
4436 psize += nsize; in dispose_chunk()
4438 set_size_and_pinuse_of_free_chunk(p, psize); in dispose_chunk()
4440 m->dvsize = psize; in dispose_chunk()
4446 set_free_with_pinuse(p, psize, next); in dispose_chunk()
4448 insert_chunk(m, p, psize); in dispose_chunk()
4727 size_t psize = chunksize(p); in dlfree() local
4728 mchunkptr next = chunk_plus_offset(p, psize); in dlfree()
4732 psize += prevsize + MMAP_FOOT_PAD; in dlfree()
4733 if (CALL_MUNMAP((char*)p - prevsize, psize) == 0) in dlfree()
4734 fm->footprint -= psize; in dlfree()
4739 psize += prevsize; in dlfree()
4746 fm->dvsize = psize; in dlfree()
4747 set_free_with_pinuse(p, psize, next); in dlfree()
4759 size_t tsize = fm->topsize += psize; in dlfree()
4771 size_t dsize = fm->dvsize += psize; in dlfree()
4778 psize += nsize; in dlfree()
4780 set_size_and_pinuse_of_free_chunk(p, psize); in dlfree()
4782 fm->dvsize = psize; in dlfree()
4788 set_free_with_pinuse(p, psize, next); in dlfree()
4790 if (is_small(psize)) { in dlfree()
4791 insert_small_chunk(fm, p, psize); in dlfree()
4796 insert_large_chunk(fm, tp, psize); in dlfree()
5135 size_t psize = chunksize(p); in internal_bulk_free() local
5148 size_t newsize = chunksize(next) + psize; in internal_bulk_free()
5153 dispose_chunk(m, p, psize); in internal_bulk_free()
5668 size_t psize = chunksize(p); in mspace_free() local
5669 mchunkptr next = chunk_plus_offset(p, psize); in mspace_free()
5673 psize += prevsize + MMAP_FOOT_PAD; in mspace_free()
5674 if (CALL_MUNMAP((char*)p - prevsize, psize) == 0) in mspace_free()
5675 fm->footprint -= psize; in mspace_free()
5680 psize += prevsize; in mspace_free()
5687 fm->dvsize = psize; in mspace_free()
5688 set_free_with_pinuse(p, psize, next); in mspace_free()
5700 size_t tsize = fm->topsize += psize; in mspace_free()
5712 size_t dsize = fm->dvsize += psize; in mspace_free()
5719 psize += nsize; in mspace_free()
5721 set_size_and_pinuse_of_free_chunk(p, psize); in mspace_free()
5723 fm->dvsize = psize; in mspace_free()
5729 set_free_with_pinuse(p, psize, next); in mspace_free()
5731 if (is_small(psize)) { in mspace_free()
5732 insert_small_chunk(fm, p, psize); in mspace_free()
5737 insert_large_chunk(fm, tp, psize); in mspace_free()