summaryrefslogtreecommitdiffstats
path: root/main/xulrunner/mallctl.patch
blob: 7c56f584e66602cbf1f8b02f600396577f1cbb5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
https://bugzilla.mozilla.org/show_bug.cgi?id=815681

diff --git a/xpcom/base/AvailableMemoryTracker.cpp b/xpcom/base/AvailableMemoryTracker.cpp
index 69af67d..ef98fec 100644
--- a/xpcom/base/AvailableMemoryTracker.cpp
+++ b/xpcom/base/AvailableMemoryTracker.cpp
@@ -26,9 +26,7 @@
 #   include <windows.h>
 #endif
 
-#if defined(MOZ_MEMORY)
 #   include "jemalloc.h"
-#endif  // MOZ_MEMORY
 
 using namespace mozilla;
 
@@ -498,11 +496,7 @@ nsJemallocFreeDirtyPagesRunnable::Run()
 {
   MOZ_ASSERT(NS_IsMainThread());
 
-#if defined(MOZ_JEMALLOC)
-  mallctl("arenas.purge", nullptr, 0, nullptr, 0);
-#elif defined(MOZ_MEMORY)
   jemalloc_free_dirty_pages();
-#endif
 
   return NS_OK;
 }