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