2017-01-11 10:06:31 +08:00
|
|
|
#ifndef JEMALLOC_INTERNAL_BASE_INLINES_H
|
|
|
|
#define JEMALLOC_INTERNAL_BASE_INLINES_H
|
|
|
|
|
2017-04-22 00:37:34 +08:00
|
|
|
static inline unsigned
|
2017-01-16 08:56:30 +08:00
|
|
|
base_ind_get(const base_t *base) {
|
2017-01-20 10:15:45 +08:00
|
|
|
return base->ind;
|
2017-01-11 10:06:31 +08:00
|
|
|
}
|
|
|
|
|
2017-08-25 05:29:28 +08:00
|
|
|
static inline bool
|
|
|
|
metadata_thp_enabled(void) {
|
|
|
|
return (opt_metadata_thp != metadata_thp_disabled);
|
|
|
|
}
|
2017-01-11 10:06:31 +08:00
|
|
|
#endif /* JEMALLOC_INTERNAL_BASE_INLINES_H */
|