Lines Matching refs:mparams
1432 * magic_init_mutex ensures that mparams.magic and other
1433 unique mparams values are initialized only once.
1949 cached from mparams in trim_check, except that it is disabled if
1998 A cross-check field that should always hold same value as mparams.magic.
2049 dynamically set using mallopt. There is a single instance, mparams,
2062 static struct malloc_params mparams;
2092 (((S) + (mparams.page_size)) & ~(mparams.page_size - SIZE_T_ONE))
2096 (((S) + (mparams.granularity)) & ~(mparams.granularity - SIZE_T_ONE))
2099 (((size_t)(S) & (mparams.page_size - SIZE_T_ONE)) == 0)
2101 (((size_t)(S) & (mparams.granularity - SIZE_T_ONE)) == 0)
2155 #define GLOBALLY_INITIALIZE() (mparams.page_size == 0 && init_mparams())
2396 #define ok_magic(M) ((M)->magic == mparams.magic)
2437 (((mchunkptr)((char*)(p) + (s)))->prev_foot = ((size_t)(M) ^ mparams.magic))
2441 (chunksize(p))))->prev_foot ^ mparams.magic))
2459 /* ---------------------------- setting mparams -------------------------- */
2461 /* Initialize mparams */
2463 if (mparams.page_size == 0) {
2466 mparams.mmap_threshold = DEFAULT_MMAP_THRESHOLD;
2467 mparams.trim_threshold = DEFAULT_TRIM_THRESHOLD;
2469 mparams.default_mflags = USE_LOCK_BIT|USE_MMAP_BIT;
2471 mparams.default_mflags = USE_LOCK_BIT|USE_MMAP_BIT|USE_NONCONTIGUOUS_BIT;
2497 if (mparams.magic == 0) {
2498 mparams.magic = s;
2501 gm->mflags = mparams.default_mflags;
2506 mparams.page_size = malloc_getpagesize;
2507 mparams.granularity = ((DEFAULT_GRANULARITY != 0)?
2508 DEFAULT_GRANULARITY : mparams.page_size);
2513 mparams.page_size = system_info.dwPageSize;
2514 mparams.granularity = system_info.dwAllocationGranularity;
2530 ((mparams.granularity & (mparams.granularity-SIZE_T_ONE)) != 0) ||
2531 ((mparams.page_size & (mparams.page_size-SIZE_T_ONE)) != 0))
2543 mparams.trim_threshold = val;
2546 if (val >= mparams.page_size && ((val & (val-1)) == 0)) {
2547 mparams.granularity = val;
2553 mparams.mmap_threshold = val;
2592 assert((len & (mparams.page_size-SIZE_T_ONE)) == 0);
3198 (oldsize - nb) <= (mparams.granularity << 1))
3240 m->trim_check = mparams.trim_threshold; /* reset on each update */
3379 if (use_mmap(m) && nb >= mparams.mmap_threshold) {
3502 m->magic = mparams.magic;
3610 size_t unit = mparams.granularity;
4359 pagesz = mparams.page_size;
4366 pagesz = mparams.page_size;
4426 m->magic = mparams.magic;
4427 m->mflags = mparams.default_mflags;
4441 if (capacity < (size_t) -(msize + TOP_FOOT_SIZE + mparams.page_size)) {
4442 size_t rs = ((capacity == 0)? mparams.granularity :
4461 capacity < (size_t) -(msize + TOP_FOOT_SIZE + mparams.page_size)) {