H A D | base.c | 10 * In auto mode, arenas switch to huge pages for the base allocator on the 11 * second base block. a0 switches to thp on the 5th block (after 20 megabytes 12 * of metadata), since more metadata (e.g. rtree nodes) come from a0's base. 125 base_get_num_blocks(base_t *base, bool with_new_block) { in base_extent_init() 126 base_block_t *b = base->blocks; in base_extent_init() 139 base_auto_thp_switch(tsdn_t *tsdn, base_t *base) { in base_get_num_blocks() 141 malloc_mutex_assert_owner(tsdn, &base->mtx); in base_get_num_blocks() 142 if (base->auto_thp_switched) { 147 if (base_ind_get(base) != 0) { in base_auto_thp_switch() 148 should_switch = (base_get_num_blocks(base, tru in base_auto_thp_switch() 130 base_get_num_blocks(base_t * base,bool with_new_block) base_get_num_blocks() argument 144 base_auto_thp_switch(tsdn_t * tsdn,base_t * base) base_auto_thp_switch() argument 198 base_extent_bump_alloc_post(base_t * base,extent_t * extent,size_t gap_size,void * addr,size_t size) base_extent_bump_alloc_post() argument 232 base_extent_bump_alloc(base_t * base,extent_t * extent,size_t size,size_t alignment) base_extent_bump_alloc() argument 248 base_block_alloc(tsdn_t * tsdn,base_t * base,extent_hooks_t * extent_hooks,unsigned ind,pszind_t * pind_last,size_t * extent_sn_next,size_t size,size_t alignment) base_block_alloc() argument 308 base_extent_alloc(tsdn_t * tsdn,base_t * base,size_t size,size_t alignment) base_extent_alloc() argument 362 base_t *base = (base_t *)base_extent_bump_alloc_helper(&block->extent, base_new() local 396 base_delete(tsdn_t * tsdn,base_t * base) base_delete() argument 408 base_extent_hooks_get(base_t * base) base_extent_hooks_get() argument 414 base_extent_hooks_set(base_t * base,extent_hooks_t * extent_hooks) base_extent_hooks_set() argument 421 base_alloc_impl(tsdn_t * tsdn,base_t * base,size_t size,size_t alignment,size_t * esn) base_alloc_impl() argument 464 base_alloc(tsdn_t * tsdn,base_t * base,size_t size,size_t alignment) base_alloc() argument 469 base_alloc_extent(tsdn_t * tsdn,base_t * base) base_alloc_extent() argument 481 base_stats_get(tsdn_t * tsdn,base_t * base,size_t * allocated,size_t * resident,size_t * mapped,size_t * n_thp) base_stats_get() argument 496 base_prefork(tsdn_t * tsdn,base_t * base) base_prefork() argument 501 base_postfork_parent(tsdn_t * tsdn,base_t * base) base_postfork_parent() argument 506 base_postfork_child(tsdn_t * tsdn,base_t * base) base_postfork_child() argument [all...] |