Lines Matching refs:mstate
1767 /* mstate bit set if continguous morecore disabled or failed */
2451 Except for the top-most segment of an mstate, each segment record
2453 segment records onto the list headed by &mstate.seg for the
2454 containing mstate.
2604 typedef struct malloc_state* mstate;
2698 static msegmentptr segment_holding(mstate m, char* addr) {
2709 static int has_segment_link(mstate m, msegmentptr ss) {
2771 static void reset_on_error(mstate m);
2808 static void do_check_any_chunk(mstate m, mchunkptr p);
2809 static void do_check_top_chunk(mstate m, mchunkptr p);
2810 static void do_check_mmapped_chunk(mstate m, mchunkptr p);
2811 static void do_check_inuse_chunk(mstate m, mchunkptr p);
2812 static void do_check_free_chunk(mstate m, mchunkptr p);
2813 static void do_check_malloced_chunk(mstate m, void* mem, size_t s);
2814 static void do_check_tree(mstate m, tchunkptr t);
2815 static void do_check_treebin(mstate m, bindex_t i);
2816 static void do_check_smallbin(mstate m, bindex_t i);
2817 static void do_check_malloc_state(mstate m);
2818 static int bin_find(mstate m, mchunkptr x);
2819 static size_t traverse_and_check(mstate m);
2995 that the mstate controlling malloc/free is intact. This is a
2999 of an inuse chunk holds the xor of its mstate and a random seed,
3027 /* Check if (alleged) mstate m has expected magic field */
3068 /* Set foot of inuse chunk to be xor of mstate and seed */
3073 ((mstate)(((mchunkptr)((char*)(p) +\
3233 static void do_check_any_chunk(mstate m, mchunkptr p) {
3239 static void do_check_top_chunk(mstate m, mchunkptr p) {
3253 static void do_check_mmapped_chunk(mstate m, mchunkptr p) {
3267 static void do_check_inuse_chunk(mstate m, mchunkptr p) {
3278 static void do_check_free_chunk(mstate m, mchunkptr p) {
3301 static void do_check_malloced_chunk(mstate m, void* mem, size_t s) {
3315 static void do_check_tree(mstate m, tchunkptr t) {
3366 static void do_check_treebin(mstate m, bindex_t i) {
3377 static void do_check_smallbin(mstate m, bindex_t i) {
3401 static int bin_find(mstate m, mchunkptr x) {
3437 static size_t traverse_and_check(mstate m) {
3469 static void do_check_malloc_state(mstate m) {
3501 static struct mallinfo internal_mallinfo(mstate m) {
3544 static void internal_malloc_stats(mstate m) {
3842 static void* mmap_alloc(mstate m, size_t nb) {
3874 static mchunkptr mmap_resize(mstate m, mchunkptr oldp, size_t nb, int flags) {
3912 static void init_top(mstate m, mchunkptr p, size_t psize) {
3926 /* Initialize bins for a new mstate that is otherwise zeroed out */
3927 static void init_bins(mstate m) {
3939 static void reset_on_error(mstate m) {
3956 static void* prepend_alloc(mstate m, char* newbase, char* oldbase,
3998 static void add_segment(mstate m, char* tbase, size_t tsize, flag_t mmapped) {
4053 static void* sys_alloc(mstate m, size_t nb) {
4272 static size_t release_unused_segments(mstate m) {
4319 static int sys_trim(mstate m, size_t pad) {
4387 static void dispose_chunk(mstate m, mchunkptr p, size_t psize) {
4458 static void* tmalloc_large(mstate m, size_t nb) {
4529 static void* tmalloc_small(mstate m, size_t nb) {
4716 mstate fm = get_mstate_for(p);
4840 static mchunkptr try_realloc_chunk(mstate m, mchunkptr p, size_t nb,
4919 static void* internal_memalign(mstate m, size_t alignment, size_t bytes) {
5000 static void** ialloc(mstate m,
5126 static size_t internal_bulk_free(mstate m, void* array[], size_t nelem) {
5170 static void internal_inspect_all(mstate m,
5231 mstate m = gm;
5233 mstate m = get_mstate_for(oldp);
5269 mstate m = gm;
5271 mstate m = get_mstate_for(oldp);
5437 static mstate init_user_mstate(char* tbase, size_t tsize) {
5441 mstate m = (mstate)(chunk2mem(msp));
5461 mstate m = 0;
5480 mstate m = 0;
5495 mstate ms = (mstate)msp;
5512 mstate ms = (mstate)msp;
5539 mstate ms = (mstate)msp;
5656 mstate fm = get_mstate_for(p);
5659 mstate fm = (mstate)msp;
5756 mstate ms = (mstate)msp;
5790 mstate m = (mstate)msp;
5792 mstate m = get_mstate_for(oldp);
5828 mstate m = (mstate)msp;
5830 mstate m = get_mstate_for(oldp);
5851 mstate ms = (mstate)msp;
5864 mstate ms = (mstate)msp;
5874 mstate ms = (mstate)msp;
5883 return internal_bulk_free((mstate)msp, array, nelem);
5893 mstate ms = (mstate)msp;
5908 mstate ms = (mstate)msp;
5923 mstate ms = (mstate)msp;
5935 mstate ms = (mstate)msp;
5947 mstate ms = (mstate)msp;
5959 mstate ms = (mstate)msp;
5972 mstate ms = (mstate)msp;
5990 mstate ms = (mstate)msp;