Skip to content

Commit

Permalink
cpu: x64: disable MEMFD allocation by default
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mgouicem committed Oct 20, 2022
1 parent 87cd979 commit 3e29ae2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cpu/x64/cpu_isa_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e29ae2

Please sign in to comment.