summaryrefslogtreecommitdiff
path: root/www/libxul/files/patch-toolkit-xre-nsAppRunner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'www/libxul/files/patch-toolkit-xre-nsAppRunner.cpp')
-rw-r--r--www/libxul/files/patch-toolkit-xre-nsAppRunner.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/libxul/files/patch-toolkit-xre-nsAppRunner.cpp b/www/libxul/files/patch-toolkit-xre-nsAppRunner.cpp
new file mode 100644
index 000000000000..4e9a34873720
--- /dev/null
+++ b/www/libxul/files/patch-toolkit-xre-nsAppRunner.cpp
@@ -0,0 +1,11 @@
+--- toolkit/xre/nsAppRunner.cpp~
++++ toolkit/xre/nsAppRunner.cpp
+@@ -3046,7 +3046,7 @@ XRE_main(int argc, char* argv[], const n
+ QApplication app(gArgc, gArgv);
+ #endif
+ #if defined(MOZ_WIDGET_GTK2)
+-#ifdef MOZ_MEMORY
++#if defined(MOZ_MEMORY) || defined(__FreeBSD__)
+ // Disable the slice allocator, since jemalloc already uses similar layout
+ // algorithms, and using a sub-allocator tends to increase fragmentation.
+ // This must be done before g_thread_init() is called.