da4cff0279
All mappings continue to be PAGE-aligned, even if the system page size is smaller. This change is primarily intended to provide a mechanism for supporting multiple page sizes with the same binary; smaller page sizes work better in conjunction with jemalloc's design. This resolves #467.
30 lines
766 B
C
30 lines
766 B
C
#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
|
|
;
|
|
|
|
void *pages_map(void *addr, size_t size, size_t alignment, bool *commit);
|
|
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);
|
|
bool pages_boot(void);
|
|
|
|
#endif /* JEMALLOC_INTERNAL_PAGES_EXTERNS_H */
|