Lines Matching refs:mstate
1365 /* mstate bit set if continguous morecore disabled or failed */
1860 Except for the top-most segment of an mstate, each segment record
1862 segment records onto the list headed by &mstate.seg for the
1863 containing mstate.
2033 typedef struct malloc_state* mstate;
2098 static msegmentptr segment_holding(mstate m, char* addr) {
2109 static int has_segment_link(mstate m, msegmentptr ss) {
2175 static void reset_on_error(mstate m);
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);
2216 static void do_check_malloced_chunk(mstate m, void* mem, size_t s);
2217 static void do_check_tree(mstate m, tchunkptr t);
2218 static void do_check_treebin(mstate m, bindex_t i);
2219 static void do_check_smallbin(mstate m, bindex_t i);
2220 static void do_check_malloc_state(mstate m);
2221 static int bin_find(mstate m, mchunkptr x);
2222 static size_t traverse_and_check(mstate m);
2353 that the mstate controlling malloc/free is intact. This is a
2357 of an inuse chunk holds the xor of its mstate and a random seed,
2385 /* Check if (alleged) mstate m has expected magic field */
2425 /* Set foot of inuse chunk to be xor of mstate and seed */
2430 ((mstate)(((mchunkptr)((char*)(p) +\
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) {
2622 static void do_check_malloced_chunk(mstate m, void* mem, size_t s) {
2636 static void do_check_tree(mstate m, tchunkptr t) {
2687 static void do_check_treebin(mstate m, bindex_t i) {
2698 static void do_check_smallbin(mstate m, bindex_t i) {
2722 static int bin_find(mstate m, mchunkptr x) {
2758 static size_t traverse_and_check(mstate m) {
2789 static void do_check_malloc_state(mstate m) {
2821 static struct mallinfo internal_mallinfo(mstate m) {
2860 static void internal_malloc_stats(mstate m) {
3153 static void* mmap_alloc(mstate m, size_t nb) {
3180 static mchunkptr mmap_resize(mstate m, mchunkptr oldp, size_t nb) {
3217 static void init_top(mstate m, mchunkptr p, size_t psize) {
3231 /* Initialize bins for a new mstate that is otherwise zeroed out */
3232 static void init_bins(mstate m) {
3244 static void reset_on_error(mstate m) {
3261 static void* prepend_alloc(mstate m, char* newbase, char* oldbase,
3304 static void add_segment(mstate m, char* tbase, size_t tsize, flag_t mmapped) {
3359 static void* sys_alloc(mstate m, size_t nb) {
3553 static size_t release_unused_segments(mstate m) {
3593 static int sys_trim(mstate m, size_t pad) {
3659 static void* tmalloc_large(mstate m, size_t nb) {
3732 static void* tmalloc_small(mstate m, size_t nb) {
3772 static void* internal_realloc(mstate m, void* oldmem, size_t bytes) {
3843 static void* internal_memalign(mstate m, size_t alignment, size_t bytes) {
3930 static void** ialloc(mstate m,
4203 mstate fm = get_mstate_for(p);
4319 mstate m = gm;
4321 mstate m = get_mstate_for(mem2chunk(oldmem));
4406 static mstate init_user_mstate(char* tbase, size_t tsize) {
4410 mstate m = (mstate)(chunk2mem(msp));
4427 mstate m = 0;
4446 mstate m = 0;
4461 mstate ms = (mstate)msp;
4487 mstate ms = (mstate)msp;
4604 mstate
4606 mstate fm = (mstate)msp;
4694 mstate ms = (mstate)msp;
4723 mstate ms = get_mstate_for(p);
4725 mstate ms = (mstate)msp;
4736 mstate ms = (mstate)msp;
4747 mstate ms = (mstate)msp;
4757 mstate ms = (mstate)msp;
4767 mstate ms = (mstate)msp;
4781 mstate ms = (mstate)msp;
4792 mstate ms = (mstate)msp;
4803 mstate ms = (mstate)msp;
4814 mstate ms = (mstate)msp;