Home | History | Annotate | Download | only in upstream-dlmalloc

Lines Matching defs: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) {
3542 static void internal_malloc_stats(mstate m) {
3840 static void* mmap_alloc(mstate m, size_t nb) {
3872 static mchunkptr mmap_resize(mstate m, mchunkptr oldp, size_t nb, int flags) {
3910 static void init_top(mstate m, mchunkptr p, size_t psize) {
3924 mstate that is otherwise zeroed out */
3925 static void init_bins(mstate m) {
3937 static void reset_on_error(mstate m) {
3954 static void* prepend_alloc(mstate m, char* newbase, char* oldbase,
3996 static void add_segment(mstate m, char* tbase, size_t tsize, flag_t mmapped) {
4051 static void* sys_alloc(mstate m, size_t nb) {
4270 static size_t release_unused_segments(mstate m) {
4317 static int sys_trim(mstate m, size_t pad) {
4385 static void dispose_chunk(mstate m, mchunkptr p, size_t psize) {
4456 static void* tmalloc_large(mstate m, size_t nb) {
4527 static void* tmalloc_small(mstate m, size_t nb) {
4714 mstate fm = get_mstate_for(p);
4833 static mchunkptr try_realloc_chunk(mstate m, mchunkptr p, size_t nb,
4912 static void* internal_memalign(mstate m, size_t alignment, size_t bytes) {
4993 static void** ialloc(mstate m,
5119 static size_t internal_bulk_free(mstate m, void* array[], size_t nelem) {
5163 static void internal_inspect_all(mstate m,
5224 mstate m = gm;
5226 mstate m = get_mstate_for(oldp);
5262 mstate m = gm;
5264 mstate m = get_mstate_for(oldp);
5423 static mstate init_user_mstate(char* tbase, size_t tsize) {
5427 mstate m = (mstate)(chunk2mem(msp));
5447 mstate m = 0;
5466 mstate m = 0;
5481 mstate ms = (mstate)msp;
5498 mstate ms = (mstate)msp;
5525 mstate ms = (mstate)msp;
5642 mstate fm = get_mstate_for(p);
5645 mstate fm = (mstate)msp;
5742 mstate ms = (mstate)msp;
5776 mstate m = (mstate)msp;
5778 mstate m = get_mstate_for(oldp);
5814 mstate m = (mstate)msp;
5816 mstate m = get_mstate_for(oldp);
5837 mstate ms = (mstate)msp;
5850 mstate ms = (mstate)msp;
5860 mstate ms = (mstate)msp;
5869 return internal_bulk_free((mstate)msp, array, nelem);
5879 mstate ms = (mstate)msp;
5894 mstate ms = (mstate)msp;
5909 mstate ms = (mstate)msp;
5921 mstate ms = (mstate)msp;
5933 mstate ms = (mstate)msp;
5945 mstate ms = (mstate)msp;
5958 mstate ms = (mstate)msp;
5976 mstate ms = (mstate)msp;