diff options
author | Jason Evans <jasone@canonware.com> | 2017-04-16 23:23:32 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2017-04-19 02:01:04 (GMT) |
commit | da4cff0279b2e8f2b0482ae961f2e2f63662342d (patch) | |
tree | 7d44c670b9d7a32cec4e5b872f5e20acd62a9c8b /include/jemalloc | |
parent | 45f087eb033927338b9df847eb9be6886ef48cf7 (diff) | |
download | jemalloc-da4cff0279b2e8f2b0482ae961f2e2f63662342d.zip jemalloc-da4cff0279b2e8f2b0482ae961f2e2f63662342d.tar.gz jemalloc-da4cff0279b2e8f2b0482ae961f2e2f63662342d.tar.bz2 |
Support --with-lg-page values larger than system page size.
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.
Diffstat (limited to 'include/jemalloc')
-rw-r--r-- | include/jemalloc/internal/pages_externs.h | 6 | ||||
-rw-r--r-- | include/jemalloc/internal/private_symbols.txt | 1 |
2 files changed, 2 insertions, 5 deletions
diff --git a/include/jemalloc/internal/pages_externs.h b/include/jemalloc/internal/pages_externs.h index 7e34efb..af9a01b 100644 --- a/include/jemalloc/internal/pages_externs.h +++ b/include/jemalloc/internal/pages_externs.h @@ -16,16 +16,14 @@ static const bool pages_can_purge_forced = #endif ; -void *pages_map(void *addr, size_t size, bool *commit); +void *pages_map(void *addr, size_t size, size_t alignment, bool *commit); void pages_unmap(void *addr, size_t size); -void *pages_trim(void *addr, size_t alloc_size, size_t leadsize, - size_t size, bool *commit); 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); -void pages_boot(void); +bool pages_boot(void); #endif /* JEMALLOC_INTERNAL_PAGES_EXTERNS_H */ diff --git a/include/jemalloc/internal/private_symbols.txt b/include/jemalloc/internal/private_symbols.txt index 34c2789..649a689 100644 --- a/include/jemalloc/internal/private_symbols.txt +++ b/include/jemalloc/internal/private_symbols.txt @@ -360,7 +360,6 @@ pages_map pages_nohuge pages_purge_forced pages_purge_lazy -pages_trim pages_unmap percpu_arena_choose percpu_arena_ind_limit |