Bug 997353 - Make powerpc not use static page sizes in mozjemalloc. r=njn a=jcristau
authorMike Hommey <mh@glandium.org>
Thu, 06 Jun 2019 12:25:02 +0300
changeset 536717 236675dcbcab341c475e85e0f6999df67eec3e22
parent 536716 88f51f844ca55a0dcf21450b14b41a0c9ec7ca38
child 536718 9337bf07777d1a004af086c50cb201f91466f0bb
push id2082
push userffxbld-merge
push dateMon, 01 Jul 2019 08:34:18 +0000
treeherdermozilla-release@2fb19d0466d2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnjn, jcristau
bugs997353
milestone68.0
Bug 997353 - Make powerpc not use static page sizes in mozjemalloc. r=njn a=jcristau Summary: __powerpc__ covers powerpc and powerpc64. Reviewers: njn Reviewed By: njn Bug #: 997353 Differential Revision: https://phabricator.services.mozilla.com/D33750
memory/build/mozjemalloc.cpp
--- a/memory/build/mozjemalloc.cpp
+++ b/memory/build/mozjemalloc.cpp
@@ -177,17 +177,17 @@ using namespace mozilla;
 
 // When MALLOC_STATIC_PAGESIZE is defined, the page size is fixed at
 // compile-time for better performance, as opposed to determined at
 // runtime. Some platforms can have different page sizes at runtime
 // depending on kernel configuration, so they are opted out by default.
 // Debug builds are opted out too, for test coverage.
 #ifndef MOZ_DEBUG
 #  if !defined(__ia64__) && !defined(__sparc__) && !defined(__mips__) && \
-      !defined(__aarch64__)
+      !defined(__aarch64__) && !defined(__powerpc__)
 #    define MALLOC_STATIC_PAGESIZE 1
 #  endif
 #endif
 
 #ifdef XP_WIN
 #  define STDERR_FILENO 2
 
 // Implement getenv without using malloc.