[platform] Use MADV_DONTNEED in OS::DiscardSystemPages on Linux
This is in line with PartitionAlloc's DiscardSystemPagesInternal. When the sandbox is enabled, OS::DiscardSystemPages is used instead of PA's version. As such, these two implementations should ideally be mostly identical. Using MADV_FREE instead of MADV_DONTNEED as was previously done appears to cause some memory regressions. Bug: chromium:1276887 Change-Id: Ied92b106e9894d428e599801d753ab4c8cffd874 Cq-Include-Trybots: luci.v8.try:v8_linux64_heap_sandbox_dbg_ng,v8_linux_arm64_sim_heap_sandbox_dbg_ng Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3364090Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Samuel Groß <saelo@chromium.org> Cr-Commit-Position: refs/heads/main@{#78465}
Showing
Please
register
or
sign in
to comment