mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-04 14:39:31 +03:00
always include sys/prctl.h on linux to disable THP if large_os_pages are not enabled
This commit is contained in:
parent
f9076a5cf8
commit
e4c8f42bb6
1 changed files with 3 additions and 3 deletions
|
@ -30,9 +30,9 @@ terms of the MIT license. A copy of the license can be found in the file
|
||||||
|
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
#include <features.h>
|
#include <features.h>
|
||||||
#if defined(MI_NO_THP)
|
//#if defined(MI_NO_THP)
|
||||||
#include <sys/prctl.h>
|
#include <sys/prctl.h> // THP disable
|
||||||
#endif
|
//#endif
|
||||||
#if defined(__GLIBC__)
|
#if defined(__GLIBC__)
|
||||||
#include <linux/mman.h> // linux mmap flags
|
#include <linux/mman.h> // linux mmap flags
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Reference in a new issue