Home | History | Annotate | Download | only in mpreal

Lines Matching defs:mstate

1610 /* mstate bit set if continguous morecore disabled or failed */

2322 Except for the top-most segment of an mstate, each segment record
2324 segment records onto the list headed by &mstate.seg for the
2325 containing mstate.
2471 typedef struct malloc_state* mstate;
2557 static msegmentptr segment_holding(mstate m, char* addr) {
2568 static int has_segment_link(mstate m, msegmentptr ss) {
2631 static void reset_on_error(mstate m);
2667 static void do_check_any_chunk(mstate m, mchunkptr p);
2668 static void do_check_top_chunk(mstate m, mchunkptr p);
2669 static void do_check_mmapped_chunk(mstate m, mchunkptr p);
2670 static void do_check_inuse_chunk(mstate m, mchunkptr p);
2671 static void do_check_free_chunk(mstate m, mchunkptr p);
2672 static void do_check_malloced_chunk(mstate m, void* mem, size_t s);
2673 static void do_check_tree(mstate m, tchunkptr t);
2674 static void do_check_treebin(mstate m, bindex_t i);
2675 static void do_check_smallbin(mstate m, bindex_t i);
2676 static void do_check_malloc_state(mstate m);
2677 static int bin_find(mstate m, mchunkptr x);
2678 static size_t traverse_and_check(mstate m);
2853 that the mstate controlling malloc/free is intact. This is a
2857 of an inuse chunk holds the xor of its mstate and a random seed,
2885 /* Check if (alleged) mstate m has expected magic field */
2927 /* Set foot of inuse chunk to be xor of mstate and seed */
2932 ((mstate)(((mchunkptr)((char*)(p) +\
3066 static void do_check_any_chunk(mstate m, mchunkptr p) {
3072 static void do_check_top_chunk(mstate m, mchunkptr p) {
3086 static void do_check_mmapped_chunk(mstate m, mchunkptr p) {
3100 static void do_check_inuse_chunk(mstate m, mchunkptr p) {
3111 static void do_check_free_chunk(mstate m, mchunkptr p) {
3134 static void do_check_malloced_chunk(mstate m, void* mem, size_t s) {
3148 static void do_check_tree(mstate m, tchunkptr t) {
3199 static void do_check_treebin(mstate m, bindex_t i) {
3210 static void do_check_smallbin(mstate m, bindex_t i) {
3234 static int bin_find(mstate m, mchunkptr x) {
3270 static size_t traverse_and_check(mstate m) {
3301 static void do_check_malloc_state(mstate m) {
3333 static struct mallinfo internal_mallinfo(mstate m) {
3373 static void internal_malloc_stats(mstate m) {
3667 static void* mmap_alloc(mstate m, size_t nb) {
3694 static mchunkptr mmap_resize(mstate m, mchunkptr oldp, size_t nb) {
3730 static void init_top(mstate m, mchunkptr p, size_t psize) {
3744 /* Initialize bins for a new mstate that is otherwise zeroed out */
3745 static void init_bins(mstate m) {
3757 static void reset_on_error(mstate m) {
3774 static void* prepend_alloc(mstate m, char* newbase, char* oldbase,
3816 static void add_segment(mstate m, char* tbase, size_t tsize, flag_t mmapped) {
3871 static void* sys_alloc(mstate m, size_t nb) {
4074 static size_t release_unused_segments(mstate m) {
4121 static int sys_trim(mstate m, size_t pad) {
4189 static void* tmalloc_large(mstate m, size_t nb) {
4260 static void* tmalloc_small(mstate m, size_t nb) {
4299 static void* internal_realloc(mstate m, void* oldmem, size_t bytes) {
4374 static void* internal_memalign(mstate m, size_t alignment, size_t bytes) {
4461 static void** ialloc(mstate m,
4739 mstate fm = get_mstate_for(p);
4864 mstate m = gm;
4866 mstate m = get_mstate_for(mem2chunk(oldmem));
4952 static mstate init_user_mstate(char* tbase, size_t tsize) {
4956 mstate m = (mstate)(chunk2mem(msp));
4976 mstate
4995 mstate m = 0;
5010 mstate ms = (mstate)msp;
5025 mstate ms = (mstate)msp;
5051 mstate ms = (mstate)msp;
5168 mstate fm = get_mstate_for(p);
5171 mstate fm = (mstate)msp;
5268 mstate ms = (mstate)msp;
5297 mstate ms = get_mstate_for(p);
5299 mstate ms = (mstate)msp;
5310 mstate ms = (mstate)msp;
5321 mstate ms = (mstate)msp;
5331 mstate ms = (mstate)msp;
5341 mstate ms = (mstate)msp;
5355 mstate ms = (mstate)msp;
5366 mstate ms = (mstate)msp;
5379 mstate ms = (mstate)msp;
5392 mstate ms = (mstate)msp;