mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-01-15 01:29:11 +08: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
@ -30,9 +30,9 @@ terms of the MIT license. A copy of the license can be found in the file
|
||||
|
||||
#if defined(__linux__)
|
||||
#include <features.h>
|
||||
#if defined(MI_NO_THP)
|
||||
#include <sys/prctl.h>
|
||||
#endif
|
||||
//#if defined(MI_NO_THP)
|
||||
#include <sys/prctl.h> // THP disable
|
||||
//#endif
|
||||
#if defined(__GLIBC__)
|
||||
#include <linux/mman.h> // linux mmap flags
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user