always include sys/prctl.h on linux to disable THP if large_os_pages are not enabled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user