xref: /freebsd/contrib/jemalloc/include/jemalloc/internal/extent_types.h (revision c5ad81420c495d1d5de04209b0ec4fcb435c322c)
1 #ifndef JEMALLOC_INTERNAL_EXTENT_TYPES_H
2 #define JEMALLOC_INTERNAL_EXTENT_TYPES_H
3 
4 typedef struct extent_s extent_t;
5 typedef struct extents_s extents_t;
6 
7 typedef struct extent_util_stats_s extent_util_stats_t;
8 typedef struct extent_util_stats_verbose_s extent_util_stats_verbose_t;
9 
10 #define EXTENT_HOOKS_INITIALIZER	NULL
11 
12 /*
13  * When reuse (and split) an active extent, (1U << opt_lg_extent_max_active_fit)
14  * is the max ratio between the size of the active extent and the new extent.
15  */
16 #define LG_EXTENT_MAX_ACTIVE_FIT_DEFAULT 6
17 
18 typedef enum {
19 	EXTENT_NOT_HEAD,
20 	EXTENT_IS_HEAD   /* Only relevant for Windows && opt.retain. */
21 } extent_head_state_t;
22 
23 #endif /* JEMALLOC_INTERNAL_EXTENT_TYPES_H */
24