Lines Matching refs:psize
3123 size_t psize; in init_mparams() local
3127 psize = malloc_getpagesize; in init_mparams()
3128 gsize = ((DEFAULT_GRANULARITY != 0)? DEFAULT_GRANULARITY : psize); in init_mparams()
3133 psize = system_info.dwPageSize; in init_mparams()
3152 ((psize & (psize-SIZE_T_ONE)) != 0)) in init_mparams()
3155 mparams.page_size = psize; in init_mparams()
3849 size_t psize = mmsize - offset - MMAP_FOOT_PAD; in mmap_alloc() local
3852 p->head = psize; in mmap_alloc()
3853 mark_inuse_foot(m, p, psize); in mmap_alloc()
3854 chunk_plus_offset(p, psize)->head = FENCEPOST_HEAD; in mmap_alloc()
3855 chunk_plus_offset(p, psize+SIZE_T_SIZE)->head = 0; in mmap_alloc()
3887 size_t psize = newmmsize - offset - MMAP_FOOT_PAD; in mmap_resize() local
3888 newp->head = psize; in mmap_resize()
3889 mark_inuse_foot(m, newp, psize); in mmap_resize()
3890 chunk_plus_offset(newp, psize)->head = FENCEPOST_HEAD; in mmap_resize()
3891 chunk_plus_offset(newp, psize+SIZE_T_SIZE)->head = 0; in mmap_resize()
3908 static void init_top(mstate m, mchunkptr p, size_t psize) { in init_top() argument
3912 psize -= offset; in init_top()
3915 m->topsize = psize; in init_top()
3916 p->head = psize | PINUSE_BIT; in init_top()
3918 chunk_plus_offset(p, psize)->head = TOP_FOOT_SIZE; in init_top()
3956 size_t psize = (char*)oldfirst - (char*)p; in prepend_alloc() local
3958 size_t qsize = psize - nb; in prepend_alloc()
4037 size_t psize = csp - old_top; in add_segment() local
4038 mchunkptr tn = chunk_plus_offset(q, psize); in add_segment()
4039 set_free_with_pinuse(q, psize, tn); in add_segment()
4040 insert_chunk(m, q, psize); in add_segment()
4272 size_t psize = chunksize(p); in release_unused_segments() local
4274 if (!is_inuse(p) && (char*)p + psize >= base + size - TOP_FOOT_SIZE) { in release_unused_segments()
4292 insert_large_chunk(m, tp, psize); in release_unused_segments()
4375 static void dispose_chunk(mstate m, mchunkptr p, size_t psize) { in dispose_chunk() argument
4376 mchunkptr next = chunk_plus_offset(p, psize); in dispose_chunk()
4381 psize += prevsize + MMAP_FOOT_PAD; in dispose_chunk()
4382 if (CALL_MUNMAP((char*)p - prevsize, psize) == 0) in dispose_chunk()
4383 m->footprint -= psize; in dispose_chunk()
4387 psize += prevsize; in dispose_chunk()
4394 m->dvsize = psize; in dispose_chunk()
4395 set_free_with_pinuse(p, psize, next); in dispose_chunk()
4407 size_t tsize = m->topsize += psize; in dispose_chunk()
4417 size_t dsize = m->dvsize += psize; in dispose_chunk()
4424 psize += nsize; in dispose_chunk()
4426 set_size_and_pinuse_of_free_chunk(p, psize); in dispose_chunk()
4428 m->dvsize = psize; in dispose_chunk()
4434 set_free_with_pinuse(p, psize, next); in dispose_chunk()
4436 insert_chunk(m, p, psize); in dispose_chunk()
4723 size_t psize = chunksize(p); in dlfree() local
4724 mchunkptr next = chunk_plus_offset(p, psize); in dlfree()
4728 psize += prevsize + MMAP_FOOT_PAD; in dlfree()
4729 if (CALL_MUNMAP((char*)p - prevsize, psize) == 0) in dlfree()
4730 fm->footprint -= psize; in dlfree()
4735 psize += prevsize; in dlfree()
4742 fm->dvsize = psize; in dlfree()
4743 set_free_with_pinuse(p, psize, next); in dlfree()
4755 size_t tsize = fm->topsize += psize; in dlfree()
4767 size_t dsize = fm->dvsize += psize; in dlfree()
4774 psize += nsize; in dlfree()
4776 set_size_and_pinuse_of_free_chunk(p, psize); in dlfree()
4778 fm->dvsize = psize; in dlfree()
4784 set_free_with_pinuse(p, psize, next); in dlfree()
4786 if (is_small(psize)) { in dlfree()
4787 insert_small_chunk(fm, p, psize); in dlfree()
4792 insert_large_chunk(fm, tp, psize); in dlfree()
5133 size_t psize = chunksize(p); in internal_bulk_free() local
5146 size_t newsize = chunksize(next) + psize; in internal_bulk_free()
5151 dispose_chunk(m, p, psize); in internal_bulk_free()
5665 size_t psize = chunksize(p); in mspace_free() local
5666 mchunkptr next = chunk_plus_offset(p, psize); in mspace_free()
5670 psize += prevsize + MMAP_FOOT_PAD; in mspace_free()
5671 if (CALL_MUNMAP((char*)p - prevsize, psize) == 0) in mspace_free()
5672 fm->footprint -= psize; in mspace_free()
5677 psize += prevsize; in mspace_free()
5684 fm->dvsize = psize; in mspace_free()
5685 set_free_with_pinuse(p, psize, next); in mspace_free()
5697 size_t tsize = fm->topsize += psize; in mspace_free()
5709 size_t dsize = fm->dvsize += psize; in mspace_free()
5716 psize += nsize; in mspace_free()
5718 set_size_and_pinuse_of_free_chunk(p, psize); in mspace_free()
5720 fm->dvsize = psize; in mspace_free()
5726 set_free_with_pinuse(p, psize, next); in mspace_free()
5728 if (is_small(psize)) { in mspace_free()
5729 insert_small_chunk(fm, p, psize); in mspace_free()
5734 insert_large_chunk(fm, tp, psize); in mspace_free()