From a71adf8fd9065a8a0ef8462c985c686a83ab7060 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Wed, 1 Nov 2017 16:45:24 +0900 Subject: [PATCH] Bug 1413475 - Move MALLOC_DECOMMIT definition closer to that of MALLOC_DOUBLE_PURGE. r=njn --HG-- extra : rebase_source : 41e4dc84269dfa47c9b7daf4ab587dd41c7eb290 --- memory/build/mozjemalloc.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/memory/build/mozjemalloc.cpp b/memory/build/mozjemalloc.cpp index c53b0baf3d19..09c1ab566583 100644 --- a/memory/build/mozjemalloc.cpp +++ b/memory/build/mozjemalloc.cpp @@ -171,7 +171,10 @@ using namespace mozilla; #endif #ifdef XP_WIN +#define MALLOC_DECOMMIT +#endif +#ifdef XP_WIN #define STDERR_FILENO 2 // Implement getenv without using malloc. @@ -189,8 +192,6 @@ getenv(const char* name) return nullptr; } - -#define MALLOC_DECOMMIT #endif #ifndef XP_WIN