6
6
The PowerPC architecture allows various memory page sizes, making it impossible
7
7
to predict the runtime page size.
9
diff --git a/memory/build/mozjemalloc.cpp b/memory/build/mozjemalloc.cpp
10
--- a/memory/build/mozjemalloc.cpp
11
+++ b/memory/build/mozjemalloc.cpp
12
@@ -1083,17 +1083,18 @@ struct arena_s {
17
* When MALLOC_STATIC_SIZES is defined most of the parameters
18
* controlling the malloc behavior are defined as compile-time constants
19
* for best performance and cannot be altered at runtime.
21
-#if !defined(__ia64__) && !defined(__sparc__) && !defined(__mips__) && !defined(__aarch64__)
22
+#if !defined(__ia64__) && !defined(__sparc__) && !defined(__mips__) && !defined(__aarch64__) && \
23
+ !defined(__powerpc__) && !defined(__powerpc64__)
24
#define MALLOC_STATIC_SIZES 1
27
#ifdef MALLOC_STATIC_SIZES
30
* VM page size. It must divide the runtime CPU page size or the code
9
Index: firefox-trunk-58.0~a1~hg20171030r388986/memory/build/mozjemalloc.cpp
10
===================================================================
11
--- firefox-trunk-58.0~a1~hg20171030r388986.orig/memory/build/mozjemalloc.cpp
12
+++ firefox-trunk-58.0~a1~hg20171030r388986/memory/build/mozjemalloc.cpp
14
// Debug builds are opted out too, for test coverage.
16
#if !defined(__ia64__) && !defined(__sparc__) && !defined(__mips__) && \
17
- !defined(__aarch64__)
18
+ !defined(__aarch64__) && !defined(__powerpc__) && !defined(__powerpc64__)
19
#define MALLOC_STATIC_PAGESIZE 1