Lines Matching refs:mparams

2624 static struct malloc_params mparams;  variable
2627 #define ensure_initialization() (void)(mparams.magic != 0 || init_mparams())
2670 (((S) + (mparams.page_size - SIZE_T_ONE)) & ~(mparams.page_size - SIZE_T_ONE))
2674 (((S) + (mparams.granularity - SIZE_T_ONE))\
2675 & ~(mparams.granularity - SIZE_T_ONE))
2689 (((size_t)(S) & (mparams.page_size - SIZE_T_ONE)) == 0)
2691 (((size_t)(S) & (mparams.granularity - SIZE_T_ONE)) == 0)
3028 #define ok_magic(M) ((M)->magic == mparams.magic)
3070 (((mchunkptr)((char*)(p) + (s)))->prev_foot = ((size_t)(M) ^ mparams.magic))
3074 (chunksize(p))))->prev_foot ^ mparams.magic))
3111 if (mparams.magic == 0) { in init_mparams()
3147 mparams.granularity = gsize; in init_mparams()
3148 mparams.page_size = psize; in init_mparams()
3149 mparams.mmap_threshold = DEFAULT_MMAP_THRESHOLD; in init_mparams()
3150 mparams.trim_threshold = DEFAULT_TRIM_THRESHOLD; in init_mparams()
3152 mparams.default_mflags = USE_LOCK_BIT|USE_MMAP_BIT; in init_mparams()
3154 mparams.default_mflags = USE_LOCK_BIT|USE_MMAP_BIT|USE_NONCONTIGUOUS_BIT; in init_mparams()
3159 gm->mflags = mparams.default_mflags; in init_mparams()
3190 (*(volatile size_t *)(&(mparams.magic))) = magic; in init_mparams()
3212 mparams.trim_threshold = val; in change_mparam()
3215 if (val >= mparams.page_size && ((val & (val-1)) == 0)) { in change_mparam()
3216 mparams.granularity = val; in change_mparam()
3222 mparams.mmap_threshold = val; in change_mparam()
3261 assert((len & (mparams.page_size-SIZE_T_ONE)) == 0); in do_check_mmapped_chunk()
3881 (oldsize - nb) <= (mparams.granularity << 1)) in mmap_resize()
3923 m->trim_check = mparams.trim_threshold; /* reset on each update */ in init_top()
4062 if (use_mmap(m) && nb >= mparams.mmap_threshold && m->topsize != 0) { in sys_alloc()
4206 m->magic = mparams.magic; in sys_alloc()
4327 size_t unit = mparams.granularity; in sys_trim()
5323 pagesz = mparams.page_size; in dlvalloc()
5332 pagesz = mparams.page_size; in dlpvalloc()
5447 m->magic = mparams.magic; in init_user_mstate()
5449 m->mflags = mparams.default_mflags; in init_user_mstate()
5465 if (capacity < (size_t) -(msize + TOP_FOOT_SIZE + mparams.page_size)) { in create_mspace()
5466 size_t rs = ((capacity == 0)? mparams.granularity : in create_mspace()
5485 capacity < (size_t) -(msize + TOP_FOOT_SIZE + mparams.page_size)) { in create_mspace_with_base()