Home | History | Annotate | Download | only in src

Lines Matching refs:mparams

1386   * magic_init_mutex ensures that mparams.magic and other
1387 unique mparams values are initialized only once.
1939 cached from mparams in trim_check, except that it is disabled if
1988 A cross-check field that should always hold same value as mparams.magic.
2039 dynamically set using mallopt. There is a single instance, mparams,
2052 static struct malloc_params mparams;
2082 (((S) + (mparams.page_size)) & ~(mparams.page_size - SIZE_T_ONE))
2086 (((S) + (mparams.granularity)) & ~(mparams.granularity - SIZE_T_ONE))
2089 (((size_t)(S) & (mparams.page_size - SIZE_T_ONE)) == 0)
2091 (((size_t)(S) & (mparams.granularity - SIZE_T_ONE)) == 0)
2145 #define GLOBALLY_INITIALIZE() (mparams.page_size == 0 && init_mparams())
2386 #define ok_magic(M) ((M)->magic == mparams.magic)
2427 (((mchunkptr)((char*)(p) + (s)))->prev_foot = ((size_t)(M) ^ mparams.magic))
2431 (chunksize(p))))->prev_foot ^ mparams.magic))
2449 /* ---------------------------- setting mparams -------------------------- */
2451 /* Initialize mparams */
2453 if (mparams.page_size == 0) {
2456 mparams.mmap_threshold = DEFAULT_MMAP_THRESHOLD;
2457 mparams.trim_threshold = DEFAULT_TRIM_THRESHOLD;
2459 mparams.default_mflags = USE_LOCK_BIT|USE_MMAP_BIT;
2461 mparams.default_mflags = USE_LOCK_BIT|USE_MMAP_BIT|USE_NONCONTIGUOUS_BIT;
2487 if (mparams.magic == 0) {
2488 mparams.magic = s;
2491 gm->mflags = mparams.default_mflags;
2496 mparams.page_size = malloc_getpagesize;
2497 mparams.granularity = ((DEFAULT_GRANULARITY != 0)?
2498 DEFAULT_GRANULARITY : mparams.page_size);
2503 mparams.page_size = system_info.dwPageSize;
2504 mparams.granularity = system_info.dwAllocationGranularity;
2520 ((mparams.granularity & (mparams.granularity-SIZE_T_ONE)) != 0) ||
2521 ((mparams.page_size & (mparams.page_size-SIZE_T_ONE)) != 0))
2533 mparams.trim_threshold = val;
2536 if (val >= mparams.page_size && ((val & (val-1)) == 0)) {
2537 mparams.granularity = val;
2543 mparams.mmap_threshold = val;
2582 assert((len & (mparams.page_size-SIZE_T_ONE)) == 0);
3186 (oldsize - nb) <= (mparams.granularity << 1))
3228 m->trim_check = mparams.trim_threshold; /* reset on each update */
3367 if (use_mmap(m) && nb >= mparams.mmap_threshold) {
3490 m->magic = mparams.magic;
3600 size_t unit = mparams.granularity;
4349 pagesz = mparams.page_size;
4356 pagesz = mparams.page_size;
4416 m->magic = mparams.magic;
4417 m->mflags = mparams.default_mflags;
4431 if (capacity < (size_t) -(msize + TOP_FOOT_SIZE + mparams.page_size)) {
4432 size_t rs = ((capacity == 0)? mparams.granularity :
4451 capacity < (size_t) -(msize + TOP_FOOT_SIZE + mparams.page_size)) {