[compiler-rt] [compiler-rt] madvise interception (PR #76562)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 2 11:11:13 PST 2024
================
@@ -7498,10 +7498,19 @@ INTERCEPTOR(int, mprotect, void *addr, SIZE_T sz, int prot) {
MprotectMallocZones(addr, prot);
return REAL(mprotect)(addr, sz, prot);
}
-#define INIT_MMAP \
- COMMON_INTERCEPT_FUNCTION(mmap); \
- COMMON_INTERCEPT_FUNCTION(munmap); \
- COMMON_INTERCEPT_FUNCTION(mprotect);
+
+INTERCEPTOR(int, madvise, uptr addr, SIZE_T sz, int advice) {
----------------
vitalybuka wrote:
why do we need it if it does nothing?
https://github.com/llvm/llvm-project/pull/76562
More information about the llvm-commits
mailing list