mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 14:28:39 +09:00
Remove support for making jemalloc4 the default memory allocator.
This commit is contained in:
parent
c76d18a40d
commit
797ca533f9
12 changed files with 32 additions and 439 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue