summaryrefslogtreecommitdiff
path: root/rhbz-1014858.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2015-01-05 14:37:21 +0100
committerMartin Stransky <stransky@redhat.com>2015-01-05 14:37:21 +0100
commit3cfb2b8c1feee71c821453b751ddbb92e271382a (patch)
tree6f8c24a02007b73c4889d418a2aad93ccadeece8 /rhbz-1014858.patch
parentBuild with system jpeg on rawhide (diff)
downloadlibrewolf-fedora-ff-3cfb2b8c1feee71c821453b751ddbb92e271382a.tar.gz
librewolf-fedora-ff-3cfb2b8c1feee71c821453b751ddbb92e271382a.tar.bz2
librewolf-fedora-ff-3cfb2b8c1feee71c821453b751ddbb92e271382a.zip
Fixed rhbz#1014858 - GLib-CRITICAL **: g_slice_set_config: assertion sys_page_size == 0 failed
Diffstat (limited to 'rhbz-1014858.patch')
-rw-r--r--rhbz-1014858.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/rhbz-1014858.patch b/rhbz-1014858.patch
new file mode 100644
index 0000000..c953b33
--- /dev/null
+++ b/rhbz-1014858.patch
@@ -0,0 +1,16 @@
+diff -up mozilla-release/toolkit/xre/nsAppRunner.cpp.old mozilla-release/toolkit/xre/nsAppRunner.cpp
+--- mozilla-release/toolkit/xre/nsAppRunner.cpp.old 2014-11-26 03:17:40.000000000 +0100
++++ mozilla-release/toolkit/xre/nsAppRunner.cpp 2015-01-05 14:23:05.977933308 +0100
+@@ -4168,10 +4168,8 @@ XREMain::XRE_main(int argc, char* argv[]
+
+ #if defined(MOZ_WIDGET_GTK)
+ #if defined(MOZ_MEMORY) || defined(__FreeBSD__) || defined(__NetBSD__)
+- // 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.
+- g_slice_set_config(G_SLICE_CONFIG_ALWAYS_MALLOC, 1);
++ // rhbz#1014858 - enable slice allocator for child processes
++ unsetenv("G_SLICE");
+ #endif
+ g_thread_init(nullptr);
+ #endif
bgstack15