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 /test/unit | |
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 'test/unit')
-rw-r--r-- | test/unit/pack.c | 2 | ||||
-rw-r--r-- | test/unit/pages.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/pack.c b/test/unit/pack.c index 5da4ae1..edfc548 100644 --- a/test/unit/pack.c +++ b/test/unit/pack.c @@ -6,7 +6,7 @@ #if LG_PAGE <= 14 #define SZ (ZU(1) << (LG_PAGE - 2)) #else -#define SZ 4096 +#define SZ ZU(4096) #endif /* diff --git a/test/unit/pages.c b/test/unit/pages.c index 30d6959..4457f36 100644 --- a/test/unit/pages.c +++ b/test/unit/pages.c @@ -7,7 +7,7 @@ TEST_BEGIN(test_pages_huge) { alloc_size = HUGEPAGE * 2 - PAGE; commit = true; - pages = pages_map(NULL, alloc_size, &commit); + pages = pages_map(NULL, alloc_size, PAGE, &commit); assert_ptr_not_null(pages, "Unexpected pages_map() error"); hugepage = (void *)(ALIGNMENT_CEILING((uintptr_t)pages, HUGEPAGE)); |