blob: c87fea1f55638650f974b55c9e90a099d7680781 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- toolkit/xre/nsAppRunner.cpp~
+++ toolkit/xre/nsAppRunner.cpp
@@ -640,6 +640,7 @@ class nsXULAppInfo : public nsIXULAppInf
{
public:
+ nsXULAppInfo() {}
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIXULAPPINFO
NS_DECL_NSIXULRUNTIME
@@ -3046,7 +3047,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__) || 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.
|