summaryrefslogtreecommitdiffstats
path: root/rhbz-855919.patch
blob: 5315f573f4f704515d42f0d862fbb5b5dcf34dfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Index: mozilla-release/js/src/gc/Memory.cpp
===================================================================
--- mozilla-release.orig/js/src/gc/Memory.cpp
+++ mozilla-release/js/src/gc/Memory.cpp
@@ -348,9 +348,14 @@ UnmapPages(void *p, size_t size)
 bool
 MarkPagesUnused(void *p, size_t size)
 {
+// A workaround for Bug 746112 - endless loop on ppc64
+#if !(defined(__powerpc__))
     JS_ASSERT(uintptr_t(p) % PageSize == 0);
     int result = madvise(p, size, MADV_DONTNEED);
     return result != -1;
+#else
+    return true;
+#endif
 }
 
 bool