Bug 762448 - Bump opt.lg_dirty_mult in jemalloc3 to reduce number of dirty pages. r=glandium

This commit is contained in:
Guilherme Goncalves 2014-12-23 06:01:00 -05:00
parent beabc73a97
commit a93bfcfbad

View File

@ -10,7 +10,18 @@
#include "mozilla/Types.h"
/* Override some jemalloc defaults */
MFBT_DATA const char * je_(malloc_conf) = "narenas:1,lg_chunk:20,tcache:false";
#ifdef MOZ_B2G
/* we tolerate around 4MiB of dirty pages on most platforms, except for B2G,
* where our limit is 1MiB
*/
#define MOZ_MALLOC_PLATFORM_OPTIONS ",lg_dirty_mult:8"
#else
#define MOZ_MALLOC_PLATFORM_OPTIONS ",lg_dirty_mult:6"
#endif
#define MOZ_MALLOC_OPTIONS "narenas:1,lg_chunk:20,tcache:false"
MFBT_DATA const char * je_(malloc_conf) =
MOZ_MALLOC_OPTIONS MOZ_MALLOC_PLATFORM_OPTIONS;
#ifdef ANDROID
#include <android/log.h>