]>
Commit | Line | Data |
---|---|---|
970d7e83 LB |
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 | |
1a4d82fc | 10 | } dss_prec_t; |
970d7e83 LB |
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(void); | |
25 | bool chunk_dss_prec_set(dss_prec_t dss_prec); | |
54a0048b SL |
26 | void *chunk_alloc_dss(arena_t *arena, void *new_addr, size_t size, |
27 | size_t alignment, bool *zero, bool *commit); | |
970d7e83 LB |
28 | bool chunk_in_dss(void *chunk); |
29 | bool chunk_dss_boot(void); | |
30 | void chunk_dss_prefork(void); | |
31 | void chunk_dss_postfork_parent(void); | |
32 | void chunk_dss_postfork_child(void); | |
33 | ||
34 | #endif /* JEMALLOC_H_EXTERNS */ | |
35 | /******************************************************************************/ | |
36 | #ifdef JEMALLOC_H_INLINES | |
37 | ||
38 | #endif /* JEMALLOC_H_INLINES */ | |
39 | /******************************************************************************/ |