diff options
| author | Qi Wang <interwq@gwu.edu> | 2017-08-11 15:41:52 -0700 |
|---|---|---|
| committer | Qi Wang <interwq@gmail.com> | 2017-08-11 15:57:12 -0700 |
| commit | 3ec279ba1c702286b2a7d4ce7aaf48d7905f1c5b (patch) | |
| tree | d4777143d2244dfe788c23bc0f341e1fa0c3443b /include/jemalloc | |
| parent | 8fdd9a579779b84d6af27f94c295f82a4df8e5be (diff) | |
| download | platform_external_jemalloc_new-3ec279ba1c702286b2a7d4ce7aaf48d7905f1c5b.tar.gz platform_external_jemalloc_new-3ec279ba1c702286b2a7d4ce7aaf48d7905f1c5b.tar.bz2 platform_external_jemalloc_new-3ec279ba1c702286b2a7d4ce7aaf48d7905f1c5b.zip | |
Fix test/unit/pages.
As part of the metadata_thp support, We now have a separate swtich
(JEMALLOC_HAVE_MADVISE_HUGE) for MADV_HUGEPAGE availability. Use that instead
of JEMALLOC_THP (which doesn't guard pages_huge anymore) in tests.
Diffstat (limited to 'include/jemalloc')
| -rw-r--r-- | include/jemalloc/internal/jemalloc_preamble.h.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/jemalloc/internal/jemalloc_preamble.h.in b/include/jemalloc/internal/jemalloc_preamble.h.in index 099f98d8..f6ed731c 100644 --- a/include/jemalloc/internal/jemalloc_preamble.h.in +++ b/include/jemalloc/internal/jemalloc_preamble.h.in @@ -61,6 +61,13 @@ static const bool have_dss = false #endif ; +static const bool have_madvise_huge = +#ifdef JEMALLOC_HAVE_MADVISE_HUGE + true +#else + false +#endif + ; static const bool config_fill = #ifdef JEMALLOC_FILL true |
