mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-22 04:03:11 +00:00
Remove pidfd_open call handling and rely on PIDFD_SELF
This commit is contained in:
committed by
Guangli Dai
parent
9442300cc3
commit
5d5f76ee01
@@ -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], [ ], [ ])
|
||||
|
||||
Reference in New Issue
Block a user