|
Lines 4168-4177
XREMain::XRE_main(int argc, char* argv[]
Link Here
|
| 4168 |
|
4168 |
|
| 4169 |
#if defined(MOZ_WIDGET_GTK) |
4169 |
#if defined(MOZ_WIDGET_GTK) |
| 4170 |
#if defined(MOZ_MEMORY) || defined(__FreeBSD__) || defined(__NetBSD__) |
4170 |
#if defined(MOZ_MEMORY) || defined(__FreeBSD__) || defined(__NetBSD__) |
| 4171 |
// Disable the slice allocator, since jemalloc already uses similar layout |
4171 |
// rhbz#1014858 - enable slice allocator for child processes |
| 4172 |
// algorithms, and using a sub-allocator tends to increase fragmentation. |
4172 |
unsetenv("G_SLICE"); |
| 4173 |
// This must be done before g_thread_init() is called. |
|
|
| 4174 |
g_slice_set_config(G_SLICE_CONFIG_ALWAYS_MALLOC, 1); |
| 4175 |
#endif |
4173 |
#endif |
| 4176 |
g_thread_init(nullptr); |
4174 |
g_thread_init(nullptr); |
| 4177 |
#endif |
4175 |
#endif |