From 3e29ae26dba137a6232669bd1c5d42ad4449b794 Mon Sep 17 00:00:00 2001 From: Mourad Gouicem Date: Thu, 20 Oct 2022 05:14:19 -0700 Subject: [PATCH] cpu: x64: disable MEMFD allocation by default In some rare occasions, too many allocations may happen causing a ENOMEM error. Users still needing this capability can still enable it by passing -DXBYAK_USE_MEMFD as a compile flag. --- src/cpu/x64/cpu_isa_traits.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cpu/x64/cpu_isa_traits.hpp b/src/cpu/x64/cpu_isa_traits.hpp index 8ddb3de1768..3d7ef5e90a2 100644 --- a/src/cpu/x64/cpu_isa_traits.hpp +++ b/src/cpu/x64/cpu_isa_traits.hpp @@ -32,8 +32,7 @@ /* in order to make selinux happy memory that would be marked with X-bit should * be obtained with mmap */ #define XBYAK_USE_MMAP_ALLOCATOR -/* Use Xbyak's memfd-based allocation, if available */ -#define XBYAK_USE_MEMFD + #define XBYAK_NO_EXCEPTION #if defined(_MSC_VER) && !defined(__INTEL_COMPILER) /* turn off `size_t to other-type implicit casting` warning