From 75539401560ccef939b738e12f93e744bc2506dc Mon Sep 17 00:00:00 2001 From: Juhyung Park Date: Sat, 12 Feb 2022 18:24:17 +0900 Subject: jemalloc: enable MADV_FREE usage This is only supported with Linux v4.5+ but we don't support devices that old Change-Id: Ib8e8569100a5e65b06265281695bf09afecd8c05 Signed-off-by: Juhyung Park --- include/jemalloc/internal/jemalloc_internal_defs.h | 4 ++-- 1 file 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. -- cgit v1.2.3