| 1 | /******************************************************************************/ |
| 2 | #ifdef JEMALLOC_H_TYPES |
| 3 | |
| 4 | typedef enum { |
| 5 | dss_prec_disabled = 0, |
| 6 | dss_prec_primary = 1, |
| 7 | dss_prec_secondary = 2, |
| 8 | |
| 9 | dss_prec_limit = 3 |
| 10 | } dss_prec_t; |
| 11 | #define DSS_PREC_DEFAULT dss_prec_secondary |
| 12 | #define DSS_DEFAULT "secondary" |
| 13 | |
| 14 | #endif /* JEMALLOC_H_TYPES */ |
| 15 | /******************************************************************************/ |
| 16 | #ifdef JEMALLOC_H_STRUCTS |
| 17 | |
| 18 | extern const char *dss_prec_names[]; |
| 19 | |
| 20 | #endif /* JEMALLOC_H_STRUCTS */ |
| 21 | /******************************************************************************/ |
| 22 | #ifdef JEMALLOC_H_EXTERNS |
| 23 | |
| 24 | dss_prec_t chunk_dss_prec_get(tsdn_t *tsdn); |
| 25 | bool chunk_dss_prec_set(tsdn_t *tsdn, dss_prec_t dss_prec); |
| 26 | void *chunk_alloc_dss(tsdn_t *tsdn, arena_t *arena, void *new_addr, |
| 27 | size_t size, size_t alignment, bool *zero, bool *commit); |
| 28 | bool chunk_in_dss(tsdn_t *tsdn, void *chunk); |
| 29 | bool chunk_dss_boot(void); |
| 30 | void chunk_dss_prefork(tsdn_t *tsdn); |
| 31 | void chunk_dss_postfork_parent(tsdn_t *tsdn); |
| 32 | void chunk_dss_postfork_child(tsdn_t *tsdn); |
| 33 | |
| 34 | #endif /* JEMALLOC_H_EXTERNS */ |
| 35 | /******************************************************************************/ |
| 36 | #ifdef JEMALLOC_H_INLINES |
| 37 | |
| 38 | #endif /* JEMALLOC_H_INLINES */ |
| 39 | /******************************************************************************/ |
| 40 | |