57fe99d4be
It's always passed into the ehooks; keeping it colocated lets us avoid passing the arena everywhere.
14 lines
332 B
C
14 lines
332 B
C
#ifndef JEMALLOC_INTERNAL_BASE_INLINES_H
|
|
#define JEMALLOC_INTERNAL_BASE_INLINES_H
|
|
|
|
static inline unsigned
|
|
base_ind_get(const base_t *base) {
|
|
return ehooks_ind_get(&base->ehooks);
|
|
}
|
|
|
|
static inline bool
|
|
metadata_thp_enabled(void) {
|
|
return (opt_metadata_thp != metadata_thp_disabled);
|
|
}
|
|
#endif /* JEMALLOC_INTERNAL_BASE_INLINES_H */
|