diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-04-27 13:56:47 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-04-27 13:56:47 +0200 |
commit | 077c63084488ac38c1c44e8cdaa9c33086f0a649 (patch) | |
tree | c528abc8ae8570e66fecb123a9a1e821993f1f27 /js/xpconnect | |
parent | be1786f7b0e692d8f4326dbf53e7d0689813ee2d (diff) | |
download | UXP-077c63084488ac38c1c44e8cdaa9c33086f0a649.tar UXP-077c63084488ac38c1c44e8cdaa9c33086f0a649.tar.gz UXP-077c63084488ac38c1c44e8cdaa9c33086f0a649.tar.lz UXP-077c63084488ac38c1c44e8cdaa9c33086f0a649.tar.xz UXP-077c63084488ac38c1c44e8cdaa9c33086f0a649.zip |
Remove support for making jemalloc4 the default memory allocator.
Diffstat (limited to 'js/xpconnect')
-rw-r--r-- | js/xpconnect/src/XPCJSContext.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/js/xpconnect/src/XPCJSContext.cpp b/js/xpconnect/src/XPCJSContext.cpp index f5f6a11bb..8862bca32 100644 --- a/js/xpconnect/src/XPCJSContext.cpp +++ b/js/xpconnect/src/XPCJSContext.cpp @@ -59,10 +59,6 @@ #include "nsIXULRuntime.h" #include "nsJSPrincipals.h" -#if defined(MOZ_JEMALLOC4) -#include "mozmemory.h" -#endif - #ifdef XP_WIN #include <windows.h> #endif @@ -147,18 +143,6 @@ public: mActive = false; } } else { -#if defined(MOZ_JEMALLOC4) - if (mPurge) { - /* Jemalloc purges dirty pages regularly during free() when the - * ratio of dirty pages compared to active pages is higher than - * 1 << lg_dirty_mult. A high ratio can have an impact on - * performance, so we use the default ratio of 8, but force a - * regular purge of all remaining dirty pages, after cycle - * collection. */ - Telemetry::AutoTimer<Telemetry::MEMORY_FREE_PURGED_PAGES_MS> timer; - jemalloc_free_dirty_pages(); - } -#endif mActive = false; } return NS_OK; |