Lines Matching refs:mchunkptr
251 typedef struct malloc_chunk* mchunkptr; typedef
386 #define mem2chunk(mem) ((mchunkptr)((char*)(mem) - 2*SIZE_SZ))
417 #define next_chunk(p) ((mchunkptr)( ((char*)(p)) + ((p)->size & ~PREV_INUSE) ))
422 ((mchunkptr)( ((char*)(p)) - ((p)->prev_size) ))
426 #define chunk_at_offset(p, s) ((mchunkptr)(((char*)(p)) + (s)))
435 ((((mchunkptr)(((char*)(p))+((p)->size & ~PREV_INUSE)))->size) & PREV_INUSE)
448 ((mchunkptr)(((char*)(p)) + ((p)->size & ~PREV_INUSE)))->size |= PREV_INUSE
451 ((mchunkptr)(((char*)(p)) + ((p)->size & ~PREV_INUSE)))->size &= ~(PREV_INUSE)
456 (((mchunkptr)(((char*)(p)) + (s)))->size & PREV_INUSE)
459 (((mchunkptr)(((char*)(p)) + (s)))->size |= PREV_INUSE)
462 (((mchunkptr)(((char*)(p)) + (s)))->size &= ~(PREV_INUSE))
482 #define set_foot(p, s) (((mchunkptr)((char*)(p) + (s)))->prev_size = (s))
544 #define initial_top ((mchunkptr)(bin_at(0)))
754 static void do_check_chunk(mchunkptr p) in do_check_chunk()
756 static void do_check_chunk(p) mchunkptr p; in do_check_chunk()
774 static void do_check_free_chunk(mchunkptr p) in do_check_free_chunk()
776 static void do_check_free_chunk(p) mchunkptr p; in do_check_free_chunk()
780 mchunkptr next = chunk_at_offset(p, sz);
807 static void do_check_inuse_chunk(mchunkptr p) in do_check_inuse_chunk()
809 static void do_check_inuse_chunk(p) mchunkptr p; in do_check_inuse_chunk()
812 mchunkptr next = next_chunk(p);
824 mchunkptr prv = prev_chunk(p);
839 static void do_check_malloced_chunk(mchunkptr p, INTERNAL_SIZE_T s) in do_check_malloced_chunk()
841 static void do_check_malloced_chunk(p, s) mchunkptr p; INTERNAL_SIZE_T s; in do_check_malloced_chunk()
945 static mchunkptr mmap_chunk(size_t size) in mmap_chunk()
947 static mchunkptr mmap_chunk(size) size_t size; in mmap_chunk()
951 mchunkptr p;
965 p = (mchunkptr)mmap(0, size, PROT_READ|PROT_WRITE,
973 p = (mchunkptr)mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
976 if(p == (mchunkptr)-1) return 0;
1000 static void munmap_chunk(mchunkptr p) in munmap_chunk()
1002 static void munmap_chunk(p) mchunkptr p; in munmap_chunk()
1025 static mchunkptr mremap_chunk(mchunkptr p, size_t new_size) in mremap_chunk()
1027 static mchunkptr mremap_chunk(p, new_size) mchunkptr p; size_t new_size; in mremap_chunk()
1047 p = (mchunkptr)(cp + offset);
1084 mchunkptr old_top = top; /* Record state of old top */
1142 top = (mchunkptr)brk;
1248 mchunkptr victim; /* inspected/selected chunk */
1252 mchunkptr remainder; /* remainder from a split */
1257 mchunkptr fwd; /* misc temp for linking */
1258 mchunkptr bck; /* misc temp for linking */
1530 mchunkptr p; /* chunk corresponding to mem */
1534 mchunkptr next; /* next contiguous chunk */
1537 mchunkptr bck; /* misc temp for linking */
1538 mchunkptr fwd; /* misc temp for linking */
1667 mchunkptr oldp; /* chunk corresponding to oldmem */
1670 mchunkptr newp; /* chunk to return */
1674 mchunkptr next; /* next contiguous chunk after oldp */
1677 mchunkptr prev; /* previous contiguous chunk before oldp */
1680 mchunkptr remainder; /* holds split off extra space from newp */
1683 mchunkptr bck; /* misc temp for linking */
1684 mchunkptr fwd; /* misc temp for linking */
1910 mchunkptr p; /* corresponding chunk */
1912 mchunkptr newp; /* chunk to return */
1915 mchunkptr remainder; /* spare room at end to split off */
2006 newp = (mchunkptr)brk;
2093 mchunkptr p;
2101 mchunkptr oldtop = top;
2343 mchunkptr p;
2366 mchunkptr p; in malloc_update_mallinfo()
2368 mchunkptr q; in malloc_update_mallinfo()