]>
git.saurik.com Git - redis.git/blob - deps/jemalloc/include/jemalloc/internal/chunk_dss.h
6f005222181122006afe2258de5d477a3ee82fca
2 /******************************************************************************/
3 #ifdef JEMALLOC_H_TYPES
5 #endif /* JEMALLOC_H_TYPES */
6 /******************************************************************************/
7 #ifdef JEMALLOC_H_STRUCTS
9 #endif /* JEMALLOC_H_STRUCTS */
10 /******************************************************************************/
11 #ifdef JEMALLOC_H_EXTERNS
14 * Protects sbrk() calls. This avoids malloc races among threads, though it
15 * does not protect against races with threads that call sbrk() directly.
17 extern malloc_mutex_t dss_mtx
;
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);
24 #endif /* JEMALLOC_H_EXTERNS */
25 /******************************************************************************/
26 #ifdef JEMALLOC_H_INLINES
28 #endif /* JEMALLOC_H_INLINES */
29 /******************************************************************************/
30 #endif /* JEMALLOC_DSS */