1 #ifndef JEMALLOC_INTERNAL_BASE_EXTERNS_H 2 #define JEMALLOC_INTERNAL_BASE_EXTERNS_H 3 4 extern metadata_thp_mode_t opt_metadata_thp; 5 extern const char *metadata_thp_mode_names[]; 6 7 base_t *b0get(void); 8 base_t *base_new(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks); 9 void base_delete(tsdn_t *tsdn, base_t *base); 10 extent_hooks_t *base_extent_hooks_get(base_t *base); 11 extent_hooks_t *base_extent_hooks_set(base_t *base, 12 extent_hooks_t *extent_hooks); 13 void *base_alloc(tsdn_t *tsdn, base_t *base, size_t size, size_t alignment); 14 extent_t *base_alloc_extent(tsdn_t *tsdn, base_t *base); 15 void base_stats_get(tsdn_t *tsdn, base_t *base, size_t *allocated, 16 size_t *resident, size_t *mapped, size_t *n_thp); 17 void base_prefork(tsdn_t *tsdn, base_t *base); 18 void base_postfork_parent(tsdn_t *tsdn, base_t *base); 19 void base_postfork_child(tsdn_t *tsdn, base_t *base); 20 bool base_boot(tsdn_t *tsdn); 21 22 #endif /* JEMALLOC_INTERNAL_BASE_EXTERNS_H */ 23