diff options
| author | Jason Evans <jasone@canonware.com> | 2017-06-08 22:07:21 -0700 |
|---|---|---|
| committer | Jason Evans <jasone@canonware.com> | 2017-06-08 23:01:26 -0700 |
| commit | 13685ab1b767091d817cb4959d24a42447a6fb78 (patch) | |
| tree | 4c525ec74897111cb8adae6ab7f3f426c85fa356 /include | |
| parent | 94d655b8bd1eac3d969dfe3c15aa7a6b1d26373d (diff) | |
| download | platform_external_jemalloc_new-13685ab1b767091d817cb4959d24a42447a6fb78.tar.gz platform_external_jemalloc_new-13685ab1b767091d817cb4959d24a42447a6fb78.tar.bz2 platform_external_jemalloc_new-13685ab1b767091d817cb4959d24a42447a6fb78.zip | |
Normalize background thread configuration.
Also fix a compilation error #ifndef JEMALLOC_PTHREAD_CREATE_WRAPPER.
Diffstat (limited to 'include')
| -rw-r--r-- | include/jemalloc/internal/jemalloc_internal_defs.h.in | 5 | ||||
| -rw-r--r-- | include/jemalloc/internal/jemalloc_preamble.h.in | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_defs.h.in b/include/jemalloc/internal/jemalloc_internal_defs.h.in index 20a2358e..2bf9dea1 100644 --- a/include/jemalloc/internal/jemalloc_internal_defs.h.in +++ b/include/jemalloc/internal/jemalloc_internal_defs.h.in @@ -317,6 +317,11 @@ #undef JEMALLOC_HAVE_SCHED_SETAFFINITY /* + * If defined, all the features necessary for background threads are present. + */ +#undef JEMALLOC_BACKGROUND_THREAD + +/* * If defined, jemalloc symbols are not exported (doesn't work when * JEMALLOC_PREFIX is not defined). */ diff --git a/include/jemalloc/internal/jemalloc_preamble.h.in b/include/jemalloc/internal/jemalloc_preamble.h.in index 46750e99..18539a09 100644 --- a/include/jemalloc/internal/jemalloc_preamble.h.in +++ b/include/jemalloc/internal/jemalloc_preamble.h.in @@ -168,12 +168,6 @@ static const bool force_ivsalloc = false #endif ; - -#if (defined(JEMALLOC_HAVE_PTHREAD) && defined(JEMALLOC_HAVE_DLSYM) \ - && !defined(JEMALLOC_OSSPIN) && !defined(JEMALLOC_OS_UNFAIR_LOCK)) -/* Currently background thread supports pthread only. */ -#define JEMALLOC_BACKGROUND_THREAD -#endif static const bool have_background_thread = #ifdef JEMALLOC_BACKGROUND_THREAD true |
