diff options
author | Jason Evans <jasone@canonware.com> | 2017-05-30 16:54:49 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2017-05-30 18:30:54 (GMT) |
commit | c606a87d2a2a946793cf0a29ca69a1962caf6008 (patch) | |
tree | c05fd628e3bd24cd68de881da3f4a2601d767f7d /include | |
parent | bf6673a070a7d0b12a4d25c1f64dcf562f61f10a (diff) | |
download | jemalloc-c606a87d2a2a946793cf0a29ca69a1962caf6008.zip jemalloc-c606a87d2a2a946793cf0a29ca69a1962caf6008.tar.gz jemalloc-c606a87d2a2a946793cf0a29ca69a1962caf6008.tar.bz2 |
Add the --disable-thp option to support cross compiling.
This resolves #669.
Diffstat (limited to 'include')
-rw-r--r-- | include/jemalloc/internal/jemalloc_internal_defs.h.in | 4 | ||||
-rw-r--r-- | include/jemalloc/internal/jemalloc_preamble.h.in | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_defs.h.in b/include/jemalloc/internal/jemalloc_internal_defs.h.in index 75576a5..20a2358 100644 --- a/include/jemalloc/internal/jemalloc_internal_defs.h.in +++ b/include/jemalloc/internal/jemalloc_internal_defs.h.in @@ -269,8 +269,8 @@ #undef JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS /* - * Defined if transparent huge pages are supported via the MADV_[NO]HUGEPAGE - * arguments to madvise(2). + * Defined if transparent huge pages (THPs) are supported via the + * MADV_[NO]HUGEPAGE arguments to madvise(2), and THP support is enabled. */ #undef JEMALLOC_THP diff --git a/include/jemalloc/internal/jemalloc_preamble.h.in b/include/jemalloc/internal/jemalloc_preamble.h.in index 0e87610..46750e9 100644 --- a/include/jemalloc/internal/jemalloc_preamble.h.in +++ b/include/jemalloc/internal/jemalloc_preamble.h.in @@ -111,6 +111,13 @@ static const bool config_stats = false #endif ; +static const bool config_thp = +#ifdef JEMALLOC_THP + true +#else + false +#endif + ; static const bool config_tls = #ifdef JEMALLOC_TLS true @@ -139,13 +146,6 @@ static const bool config_cache_oblivious = false #endif ; -static const bool have_thp = -#ifdef JEMALLOC_THP - true -#else - false -#endif - ; #ifdef JEMALLOC_HAVE_SCHED_GETCPU /* Currently percpu_arena depends on sched_getcpu. */ #define JEMALLOC_PERCPU_ARENA |