Bug 1482797 - Don't use MADV_FREE on Linux until we support it properly. r=njn

This commit is contained in:
Mike Hommey 2018-08-15 17:21:25 +09:00
parent aa97351aba
commit 5f59918688

View file

@ -207,6 +207,11 @@ getenv(const char* name)
#endif
#ifndef XP_WIN
// Newer Linux systems support MADV_FREE, but we're not supporting
// that properly. bug #1406304.
#if defined(XP_LINUX) && defined(MADV_FREE)
#undef MADV_FREE
#endif
#ifndef MADV_FREE
#define MADV_FREE MADV_DONTNEED
#endif