Remove pidfd_open call handling and rely on PIDFD_SELF

This commit is contained in:
Slobodan Predolac
2025-08-26 15:15:08 -07:00
committed by Guangli Dai
parent 9442300cc3
commit 5d5f76ee01
4 changed files with 11 additions and 35 deletions

View File

@@ -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], [ ], [ ])