• Home
  • Raw
  • Download

Lines Matching refs:mparams

2109 static struct malloc_params mparams;  variable
2139 (((S) + (mparams.page_size)) & ~(mparams.page_size - SIZE_T_ONE))
2143 (((S) + (mparams.granularity)) & ~(mparams.granularity - SIZE_T_ONE))
2146 (((size_t)(S) & (mparams.page_size - SIZE_T_ONE)) == 0)
2148 (((size_t)(S) & (mparams.granularity - SIZE_T_ONE)) == 0)
2202 #define GLOBALLY_INITIALIZE() (mparams.page_size == 0 && init_mparams())
2443 #define ok_magic(M) ((M)->magic == mparams.magic)
2484 (((mchunkptr)((char*)(p) + (s)))->prev_foot = ((size_t)(M) ^ mparams.magic))
2488 (chunksize(p))))->prev_foot ^ mparams.magic))
2510 if (mparams.page_size == 0) { in init_mparams()
2513 mparams.mmap_threshold = DEFAULT_MMAP_THRESHOLD; in init_mparams()
2514 mparams.trim_threshold = DEFAULT_TRIM_THRESHOLD; in init_mparams()
2516 mparams.default_mflags = USE_LOCK_BIT|USE_MMAP_BIT; in init_mparams()
2518 mparams.default_mflags = USE_LOCK_BIT|USE_MMAP_BIT|USE_NONCONTIGUOUS_BIT; in init_mparams()
2544 if (mparams.magic == 0) { in init_mparams()
2545 mparams.magic = s; in init_mparams()
2548 gm->mflags = mparams.default_mflags; in init_mparams()
2553 mparams.page_size = malloc_getpagesize; in init_mparams()
2554 mparams.granularity = ((DEFAULT_GRANULARITY != 0)? in init_mparams()
2555 DEFAULT_GRANULARITY : mparams.page_size); in init_mparams()
2559 mparams.page_size = 4096u; in init_mparams()
2560 mparams.granularity = 65536u; in init_mparams()
2565 mparams.page_size = system_info.dwPageSize; in init_mparams()
2566 mparams.granularity = system_info.dwAllocationGranularity; in init_mparams()
2582 ((mparams.granularity & (mparams.granularity-SIZE_T_ONE)) != 0) || in init_mparams()
2583 ((mparams.page_size & (mparams.page_size-SIZE_T_ONE)) != 0)) in init_mparams()
2595 mparams.trim_threshold = val; in change_mparam()
2598 if (val >= mparams.page_size && ((val & (val-1)) == 0)) { in change_mparam()
2599 mparams.granularity = val; in change_mparam()
2605 mparams.mmap_threshold = val; in change_mparam()
2644 assert((len & (mparams.page_size-SIZE_T_ONE)) == 0); in do_check_mmapped_chunk()
3248 (oldsize - nb) <= (mparams.granularity << 1)) in mmap_resize()
3290 m->trim_check = mparams.trim_threshold; /* reset on each update */ in init_top()
3429 if (use_mmap(m) && nb >= mparams.mmap_threshold) { in sys_alloc()
3552 m->magic = mparams.magic; in sys_alloc()
3662 size_t unit = mparams.granularity; in sys_trim()
4411 pagesz = mparams.page_size; in dlvalloc()
4418 pagesz = mparams.page_size; in dlpvalloc()
4478 m->magic = mparams.magic; in init_user_mstate()
4479 m->mflags = mparams.default_mflags; in init_user_mstate()
4493 if (capacity < (size_t) -(msize + TOP_FOOT_SIZE + mparams.page_size)) { in create_mspace()
4494 size_t rs = ((capacity == 0)? mparams.granularity : in create_mspace()
4513 capacity < (size_t) -(msize + TOP_FOOT_SIZE + mparams.page_size)) { in create_mspace_with_base()