Update On Fri Oct 18 20:36:44 CEST 2024

This commit is contained in:
github-action[bot]
2024-10-18 20:36:45 +02:00
parent 05d57513da
commit 007d3af361
85 changed files with 1663 additions and 819 deletions

View File

@@ -420,8 +420,9 @@ void DiscardSystemPagesInternal(uintptr_t address, size_t length) {
}
PA_PCHECK(ret == 0);
#elif defined(NO_MADVISE_SYSCALL)
static_cast<void>(ptr);
static_cast<void>(length);
// The kernel may be missing madvise support, but
// if the kernel does support it, should call it to avoid memory leaking.
static_cast<void>(madvise(ptr, length, MADV_DONTNEED));
#else // PA_BUILDFLAG(IS_APPLE)
// We have experimented with other flags, but with suboptimal results.
//