Add the --disable-thp option to support cross compiling.

This resolves #669.
This commit is contained in:
Jason Evans
2017-05-30 09:54:49 -07:00
parent bf6673a070
commit c606a87d2a
8 changed files with 53 additions and 14 deletions

View File

@@ -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

View File

@@ -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