chunk_dss.h revision 7372b15a31c63ac5cb9ed8aeabc2a0a3c005e8bf
1/******************************************************************************/
2#ifdef JEMALLOC_H_TYPES
3
4#endif /* JEMALLOC_H_TYPES */
5/******************************************************************************/
6#ifdef JEMALLOC_H_STRUCTS
7
8#endif /* JEMALLOC_H_STRUCTS */
9/******************************************************************************/
10#ifdef JEMALLOC_H_EXTERNS
11
12/*
13 * Protects sbrk() calls.  This avoids malloc races among threads, though it
14 * does not protect against races with threads that call sbrk() directly.
15 */
16extern malloc_mutex_t	dss_mtx;
17
18void	*chunk_alloc_dss(size_t size, bool *zero);
19bool	chunk_in_dss(void *chunk);
20bool	chunk_dealloc_dss(void *chunk, size_t size);
21bool	chunk_dss_boot(void);
22
23#endif /* JEMALLOC_H_EXTERNS */
24/******************************************************************************/
25#ifdef JEMALLOC_H_INLINES
26
27#endif /* JEMALLOC_H_INLINES */
28/******************************************************************************/
29