summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuhyung Park <qkrwngud825@gmail.com>2022-02-12 18:24:17 +0900
committeralk3pInjection <webmaster@raspii.tech>2022-06-29 12:32:24 +0800
commit75539401560ccef939b738e12f93e744bc2506dc (patch)
treefe8f8a2e328a3369e2c5dd89effeb83d60e7a7da
parent8107cfecc8687ef466a793ce568ff99eac627a0a (diff)
jemalloc: enable MADV_FREE usageHEADsugisawa-mr1
This is only supported with Linux v4.5+ but we don't support devices that old Change-Id: Ib8e8569100a5e65b06265281695bf09afecd8c05 Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
-rw-r--r--include/jemalloc/internal/jemalloc_internal_defs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_defs.h b/include/jemalloc/internal/jemalloc_internal_defs.h
index db06385c..fe21a0e9 100644
--- a/include/jemalloc/internal/jemalloc_internal_defs.h
+++ b/include/jemalloc/internal/jemalloc_internal_defs.h
@@ -307,12 +307,12 @@
* system overhead.
*/
/* MADV_FREE available since kernel 4.5 but not all devices support this yet. */
-/* #undef JEMALLOC_PURGE_MADVISE_FREE */
+#define JEMALLOC_PURGE_MADVISE_FREE
#define JEMALLOC_PURGE_MADVISE_DONTNEED
#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS
/* Defined if madvise(2) is available but MADV_FREE is not (x86 Linux only). */
-#define JEMALLOC_DEFINE_MADVISE_FREE
+/* #undef JEMALLOC_DEFINE_MADVISE_FREE */
/*
* Defined if MADV_DO[NT]DUMP is supported as an argument to madvise.