]> git.saurik.com Git - redis.git/blob - deps/jemalloc.orig/include/jemalloc/internal/chunk_dss.h
6f005222181122006afe2258de5d477a3ee82fca
[redis.git] / deps / jemalloc.orig / include / jemalloc / internal / chunk_dss.h
1 #ifdef JEMALLOC_DSS
2 /******************************************************************************/
3 #ifdef JEMALLOC_H_TYPES
4
5 #endif /* JEMALLOC_H_TYPES */
6 /******************************************************************************/
7 #ifdef JEMALLOC_H_STRUCTS
8
9 #endif /* JEMALLOC_H_STRUCTS */
10 /******************************************************************************/
11 #ifdef JEMALLOC_H_EXTERNS
12
13 /*
14 * Protects sbrk() calls. This avoids malloc races among threads, though it
15 * does not protect against races with threads that call sbrk() directly.
16 */
17 extern malloc_mutex_t dss_mtx;
18
19 void *chunk_alloc_dss(size_t size, bool *zero);
20 bool chunk_in_dss(void *chunk);
21 bool chunk_dealloc_dss(void *chunk, size_t size);
22 bool chunk_dss_boot(void);
23
24 #endif /* JEMALLOC_H_EXTERNS */
25 /******************************************************************************/
26 #ifdef JEMALLOC_H_INLINES
27
28 #endif /* JEMALLOC_H_INLINES */
29 /******************************************************************************/
30 #endif /* JEMALLOC_DSS */