mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-24 16:13:38 +03:00
Remove pidfd_open call handling and rely on PIDFD_SELF
This commit is contained in:
parent
e70a50f9e4
commit
bf38507ec8
4 changed files with 11 additions and 35 deletions
|
|
@ -2638,10 +2638,11 @@ if test "x${je_cv_madvise}" = "xyes" ; then
|
|||
|
||||
dnl Check for process_madvise
|
||||
JE_COMPILABLE([process_madvise(2)], [
|
||||
#include <sys/pidfd.h>
|
||||
#include <sys/syscall.h>
|
||||
#include <unistd.h>
|
||||
], [
|
||||
syscall(SYS_process_madvise, 0, (void *)0, 0, 0, 0);
|
||||
syscall(SYS_process_madvise, PIDFD_SELF, (void *)0, 0, 0, 0);
|
||||
], [je_cv_process_madvise])
|
||||
if test "x${je_cv_process_madvise}" = "xyes" ; then
|
||||
AC_DEFINE([JEMALLOC_HAVE_PROCESS_MADVISE], [ ], [ ])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue