0d783c
diff -up mozilla-release/toolkit/xre/nsAppRunner.cpp.old mozilla-release/toolkit/xre/nsAppRunner.cpp
0d783c
--- mozilla-release/toolkit/xre/nsAppRunner.cpp.old	2014-11-26 03:17:40.000000000 +0100
0d783c
+++ mozilla-release/toolkit/xre/nsAppRunner.cpp	2015-01-05 14:23:05.977933308 +0100
0d783c
@@ -4168,10 +4168,8 @@ XREMain::XRE_main(int argc, char* argv[]
0d783c
 
0d783c
 #if defined(MOZ_WIDGET_GTK)
0d783c
 #if defined(MOZ_MEMORY) || defined(__FreeBSD__) || defined(__NetBSD__)
0d783c
-  // Disable the slice allocator, since jemalloc already uses similar layout
0d783c
-  // algorithms, and using a sub-allocator tends to increase fragmentation.
0d783c
-  // This must be done before g_thread_init() is called.
0d783c
-  g_slice_set_config(G_SLICE_CONFIG_ALWAYS_MALLOC, 1);
0d783c
+  // rhbz#1014858 - enable slice allocator for child processes
0d783c
+  unsetenv("G_SLICE");
0d783c
 #endif
0d783c
   g_thread_init(nullptr);
0d783c
 #endif