]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/jemalloc/include/jemalloc/internal/chunk_dss.h
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / jemalloc / include / jemalloc / internal / chunk_dss.h
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(void);
25 bool    chunk_dss_prec_set(dss_prec_t dss_prec);
26 void    *chunk_alloc_dss(size_t size, size_t alignment, bool *zero);
27 bool    chunk_in_dss(void *chunk);
28 bool    chunk_dss_boot(void);
29 void    chunk_dss_prefork(void);
30 void    chunk_dss_postfork_parent(void);
31 void    chunk_dss_postfork_child(void);
32
33 #endif /* JEMALLOC_H_EXTERNS */
34 /******************************************************************************/
35 #ifdef JEMALLOC_H_INLINES
36
37 #endif /* JEMALLOC_H_INLINES */
38 /******************************************************************************/