зеркало из https://github.com/mozilla/gecko-dev.git
7fdec3adb1
Using g_slice_set_config() fails with newer glib because the slice allocator now has a static constructor that runs when glib is loaded, consequently emitting a noisy error message which confuses people into believing it's the root of their problems. The only way left to force the slice allocator to use "system" malloc (in practice, jemalloc) is to set the G_SLICE environment variable to always-malloc, and that needs to happen before glib is loaded. Fortunately, the firefox and plugin-container executables don't depend on glib. Unfortunately, webapprt does, so the problem remains for web apps running through it. xpcshell and other executables that depend on libxul directly (as opposed to loading it dynamically) are not covered either. |
||
---|---|---|
.. | ||
staticruntime | ||
moz.build | ||
nsXPCOMGlue.cpp | ||
nsXPCOMGlue.h |