2017-01-11 10:06:31 +08:00
|
|
|
#ifndef JEMALLOC_INTERNAL_PAGES_EXTERNS_H
|
|
|
|
#define JEMALLOC_INTERNAL_PAGES_EXTERNS_H
|
|
|
|
|
|
|
|
static const bool pages_can_purge_lazy =
|
|
|
|
#ifdef PAGES_CAN_PURGE_LAZY
|
|
|
|
true
|
|
|
|
#else
|
|
|
|
false
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
static const bool pages_can_purge_forced =
|
|
|
|
#ifdef PAGES_CAN_PURGE_FORCED
|
|
|
|
true
|
|
|
|
#else
|
|
|
|
false
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
|
2017-04-17 07:23:32 +08:00
|
|
|
void *pages_map(void *addr, size_t size, size_t alignment, bool *commit);
|
2017-01-11 10:06:31 +08:00
|
|
|
void pages_unmap(void *addr, size_t size);
|
|
|
|
bool pages_commit(void *addr, size_t size);
|
|
|
|
bool pages_decommit(void *addr, size_t size);
|
|
|
|
bool pages_purge_lazy(void *addr, size_t size);
|
|
|
|
bool pages_purge_forced(void *addr, size_t size);
|
|
|
|
bool pages_huge(void *addr, size_t size);
|
|
|
|
bool pages_nohuge(void *addr, size_t size);
|
2017-04-17 07:23:32 +08:00
|
|
|
bool pages_boot(void);
|
2017-01-11 10:06:31 +08:00
|
|
|
|
|
|
|
#endif /* JEMALLOC_INTERNAL_PAGES_EXTERNS_H */
|