Lines Matching refs:mstate
1411 /* mstate bit set if continguous morecore disabled or failed */
1906 Except for the top-most segment of an mstate, each segment record
1908 segment records onto the list headed by &mstate.seg for the
1909 containing mstate.
2043 typedef struct malloc_state* mstate;
2108 static msegmentptr segment_holding(mstate m, char* addr) {
2119 static int has_segment_link(mstate m, msegmentptr ss) {
2185 static void reset_on_error(mstate m);
2221 static void do_check_any_chunk(mstate m, mchunkptr p);
2222 static void do_check_top_chunk(mstate m, mchunkptr p);
2223 static void do_check_mmapped_chunk(mstate m, mchunkptr p);
2224 static void do_check_inuse_chunk(mstate m, mchunkptr p);
2225 static void do_check_free_chunk(mstate m, mchunkptr p);
2226 static void do_check_malloced_chunk(mstate m, void* mem, size_t s);
2227 static void do_check_tree(mstate m, tchunkptr t);
2228 static void do_check_treebin(mstate m, bindex_t i);
2229 static void do_check_smallbin(mstate m, bindex_t i);
2230 static void do_check_malloc_state(mstate m);
2231 static int bin_find(mstate m, mchunkptr x);
2232 static size_t traverse_and_check(mstate m);
2363 that the mstate controlling malloc/free is intact. This is a
2367 of an inuse chunk holds the xor of its mstate and a random seed,
2395 /* Check if (alleged) mstate m has expected magic field */
2435 /* Set foot of inuse chunk to be xor of mstate and seed */
2440 ((mstate)(((mchunkptr)((char*)(p) +\
2564 static void do_check_any_chunk(mstate m, mchunkptr p) {
2570 static void do_check_top_chunk(mstate m, mchunkptr p) {
2584 static void do_check_mmapped_chunk(mstate m, mchunkptr p) {
2598 static void do_check_inuse_chunk(mstate m, mchunkptr p) {
2609 static void do_check_free_chunk(mstate m, mchunkptr p) {
2632 static void do_check_malloced_chunk(mstate m, void* mem, size_t s) {
2646 static void do_check_tree(mstate m, tchunkptr t) {
2697 static void do_check_treebin(mstate m, bindex_t i) {
2708 static void do_check_smallbin(mstate m, bindex_t i) {
2732 static int bin_find(mstate m, mchunkptr x) {
2768 static size_t traverse_and_check(mstate m) {
2799 static void do_check_malloc_state(mstate m) {
2831 static struct mallinfo internal_mallinfo(mstate m) {
2870 static void internal_malloc_stats(mstate m) {
3165 static void* mmap_alloc(mstate m, size_t nb) {
3192 static mchunkptr mmap_resize(mstate m, mchunkptr oldp, size_t nb) {
3229 static void init_top(mstate m, mchunkptr p, size_t psize) {
3243 /* Initialize bins for a new mstate that is otherwise zeroed out */
3244 static void init_bins(mstate m) {
3256 static void reset_on_error(mstate m) {
3273 static void* prepend_alloc(mstate m, char* newbase, char* oldbase,
3316 static void add_segment(mstate m, char* tbase, size_t tsize, flag_t mmapped) {
3371 static void* sys_alloc(mstate m, size_t nb) {
3563 static size_t release_unused_segments(mstate m) {
3603 static int sys_trim(mstate m, size_t pad) {
3669 static void* tmalloc_large(mstate m, size_t nb) {
3742 static void* tmalloc_small(mstate m, size_t nb) {
3782 static void* internal_realloc(mstate m, void* oldmem, size_t bytes) {
3853 static void* internal_memalign(mstate m, size_t alignment, size_t bytes) {
3940 static void** ialloc(mstate m,
4213 mstate fm = get_mstate_for(p);
4329 mstate m = gm;
4331 mstate m = get_mstate_for(mem2chunk(oldmem));
4416 static mstate init_user_mstate(char* tbase, size_t tsize) {
4420 mstate m = (mstate)(chunk2mem(msp));
4437 mstate m = 0;
4456 mstate m = 0;
4471 mstate ms = (mstate)msp;
4497 mstate ms = (mstate)msp;
4614 mstate fm = get_mstate_for(p);
4616 mstate fm = (mstate)msp;
4704 mstate ms = (mstate)msp;
4733 mstate ms = get_mstate_for(p);
4735 mstate ms = (mstate)msp;
4746 mstate ms = (mstate)msp;
4757 mstate ms = (mstate)msp;
4767 mstate ms = (mstate)msp;
4777 mstate ms = (mstate)msp;
4791 mstate ms = (mstate)msp;
4802 mstate ms = (mstate)msp;
4813 mstate ms = (mstate)msp;
4824 mstate ms = (mstate)msp;