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