chromium-52.0.2743.116-unset-madv_free.patch 673 B

12345678910111213141516
  1. diff -up chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp.madv_free chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp
  2. --- chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp.madv_free 2016-08-15 13:07:29.279655676 -0400
  3. +++ chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp 2016-08-15 13:08:38.447317416 -0400
  4. @@ -41,6 +41,11 @@
  5. #include <errno.h>
  6. #include <sys/mman.h>
  7. +#if OS(LINUX) && defined(MADV_FREE)
  8. +// Added in Linux 4.5, but it breaks the sandbox.
  9. +#undef MADV_FREE
  10. +#endif
  11. +
  12. #ifndef MADV_FREE
  13. #define MADV_FREE MADV_DONTNEED
  14. #endif