summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2022-06-11 07:04:26 +0100
committerQi Wang <interwq@gmail.com>2022-07-19 13:23:08 -0700
commit4e12d21c8ddb9a70a12c8194c8b6c331fad7154a (patch)
tree63dfd73c128ebb0891b2314e1b95c10095f03771
parent58478412be842e140cc03dbb0c6ce84b2b8d096e (diff)
downloadjemalloc-4e12d21c8ddb9a70a12c8194c8b6c331fad7154a.tar.gz
enabled percpu_arena settings on macOs.
follow-up on #2280
-rw-r--r--include/jemalloc/internal/jemalloc_preamble.h.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/jemalloc/internal/jemalloc_preamble.h.in b/include/jemalloc/internal/jemalloc_preamble.h.in
index 5ce77d96..d7086302 100644
--- a/include/jemalloc/internal/jemalloc_preamble.h.in
+++ b/include/jemalloc/internal/jemalloc_preamble.h.in
@@ -215,7 +215,7 @@ static const bool config_enable_cxx =
#endif
;
-#if defined(_WIN32) || defined(JEMALLOC_HAVE_SCHED_GETCPU)
+#if defined(_WIN32) || defined(__APPLE__) || defined(JEMALLOC_HAVE_SCHED_GETCPU)
/* Currently percpu_arena depends on sched_getcpu. */
#define JEMALLOC_PERCPU_ARENA
#endif