2017-01-11 10:06:31 +08:00
|
|
|
#ifndef JEMALLOC_INTERNAL_BASE_EXTERNS_H
|
|
|
|
#define JEMALLOC_INTERNAL_BASE_EXTERNS_H
|
|
|
|
|
2017-08-25 05:29:28 +08:00
|
|
|
extern metadata_thp_mode_t opt_metadata_thp;
|
|
|
|
extern const char *metadata_thp_mode_names[];
|
2017-08-11 04:14:26 +08:00
|
|
|
|
2017-04-17 12:51:26 +08:00
|
|
|
base_t *b0get(void);
|
|
|
|
base_t *base_new(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks);
|
2017-06-23 06:36:41 +08:00
|
|
|
void base_delete(tsdn_t *tsdn, base_t *base);
|
2019-12-03 06:19:22 +08:00
|
|
|
ehooks_t *base_ehooks_get(base_t *base);
|
2017-04-17 12:51:26 +08:00
|
|
|
extent_hooks_t *base_extent_hooks_set(base_t *base,
|
2017-01-11 10:06:31 +08:00
|
|
|
extent_hooks_t *extent_hooks);
|
2017-04-17 12:51:26 +08:00
|
|
|
void *base_alloc(tsdn_t *tsdn, base_t *base, size_t size, size_t alignment);
|
2019-12-10 06:36:45 +08:00
|
|
|
edata_t *base_alloc_edata(tsdn_t *tsdn, base_t *base);
|
2017-04-17 12:51:26 +08:00
|
|
|
void base_stats_get(tsdn_t *tsdn, base_t *base, size_t *allocated,
|
2017-08-26 04:24:49 +08:00
|
|
|
size_t *resident, size_t *mapped, size_t *n_thp);
|
2017-04-17 12:51:26 +08:00
|
|
|
void base_prefork(tsdn_t *tsdn, base_t *base);
|
|
|
|
void base_postfork_parent(tsdn_t *tsdn, base_t *base);
|
|
|
|
void base_postfork_child(tsdn_t *tsdn, base_t *base);
|
|
|
|
bool base_boot(tsdn_t *tsdn);
|
2017-01-11 10:06:31 +08:00
|
|
|
|
|
|
|
#endif /* JEMALLOC_INTERNAL_BASE_EXTERNS_H */
|