]>
Commit | Line | Data |
---|---|---|
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 | ||
13 | extern malloc_mutex_t swap_mtx; | |
14 | extern bool swap_enabled; | |
15 | extern bool swap_prezeroed; | |
16 | extern size_t swap_nfds; | |
17 | extern int *swap_fds; | |
18 | #ifdef JEMALLOC_STATS | |
19 | extern size_t swap_avail; | |
20 | #endif | |
21 | ||
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); | |
27 | ||
28 | #endif /* JEMALLOC_H_EXTERNS */ | |
29 | /******************************************************************************/ | |
30 | #ifdef JEMALLOC_H_INLINES | |
31 | ||
32 | #endif /* JEMALLOC_H_INLINES */ | |
33 | /******************************************************************************/ | |
34 | #endif /* JEMALLOC_SWAP */ |