Bug 1413475 - Remove unused MAP_NOSYNC definition in mozjemalloc.cpp. r?njn draft
authorMike Hommey <mh+mozilla@glandium.org>
Wed, 01 Nov 2017 16:45:40 +0900
changeset 690337 58ea2ee542df22f2ef5e6f84d82e2e0958ea6bc7
parent 690336 4224bb67cbbeda248aa81b1be017bc2d846b42da
child 690338 421035e0251414adbf98ea93c7a37fd8566a3ca4
push id87285
push userbmo:mh+mozilla@glandium.org
push dateWed, 01 Nov 2017 22:04:01 +0000
reviewersnjn
bugs1413475
milestone58.0a1
Bug 1413475 - Remove unused MAP_NOSYNC definition in mozjemalloc.cpp. r?njn
memory/build/mozjemalloc.cpp
--- a/memory/build/mozjemalloc.cpp
+++ b/memory/build/mozjemalloc.cpp
@@ -193,19 +193,16 @@ getenv(const char* name)
   return nullptr;
 }
 #endif
 
 #ifndef XP_WIN
 #ifndef MADV_FREE
 #define MADV_FREE MADV_DONTNEED
 #endif
-#ifndef MAP_NOSYNC
-#define MAP_NOSYNC 0
-#endif
 #endif
 
 
 // Some tools, such as /dev/dsp wrappers, LD_PRELOAD libraries that
 // happen to override mmap() and call dlsym() from their overridden
 // mmap(). The problem is that dlsym() calls malloc(), and this ends
 // up in a dead lock in jemalloc.
 // On these systems, we prefer to directly use the system call.