]> git.saurik.com Git - redis.git/blame_incremental - deps/jemalloc.orig/include/jemalloc/internal/chunk_swap.h
Jemalloc updated to 3.0.0.
[redis.git] / deps / jemalloc.orig / include / jemalloc / internal / chunk_swap.h
... / ...
CommitLineData
1#ifdef JEMALLOC_SWAP
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
13extern malloc_mutex_t swap_mtx;
14extern bool swap_enabled;
15extern bool swap_prezeroed;
16extern size_t swap_nfds;
17extern int *swap_fds;
18#ifdef JEMALLOC_STATS
19extern size_t swap_avail;
20#endif
21
22void *chunk_alloc_swap(size_t size, bool *zero);
23bool chunk_in_swap(void *chunk);
24bool chunk_dealloc_swap(void *chunk, size_t size);
25bool chunk_swap_enable(const int *fds, unsigned nfds, bool prezeroed);
26bool chunk_swap_boot(void);
27
28#endif /* JEMALLOC_H_EXTERNS */
29/******************************************************************************/
30#ifdef JEMALLOC_H_INLINES
31
32#endif /* JEMALLOC_H_INLINES */
33/******************************************************************************/
34#endif /* JEMALLOC_SWAP */