зеркало из https://github.com/mozilla/pjs.git
bug 604831 - fixing GC trigger factor setup. r=anygregor
This commit is contained in:
Родитель
207d9e87c8
Коммит
e1dc9c585d
|
@ -3935,7 +3935,7 @@ SetMemoryHighWaterMarkPrefChangedCallback(const char* aPrefName, void* aClosure)
|
|||
static int
|
||||
SetMemoryGCFrequencyPrefChangedCallback(const char* aPrefName, void* aClosure)
|
||||
{
|
||||
PRInt32 triggerFactor = nsContentUtils::GetIntPref(aPrefName, 1600);
|
||||
PRInt32 triggerFactor = nsContentUtils::GetIntPref(aPrefName, 300);
|
||||
JS_SetGCParameter(nsJSRuntime::sRuntime, JSGC_TRIGGER_FACTOR, triggerFactor);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -597,7 +597,7 @@ pref("javascript.options.methodjit.chrome", false);
|
|||
// please find Bug 417052 comment 17 and Bug 456721
|
||||
// Comment 32.
|
||||
pref("javascript.options.mem.high_water_mark", 32);
|
||||
pref("javascript.options.mem.gc_frequency", 1600);
|
||||
pref("javascript.options.mem.gc_frequency", 300);
|
||||
|
||||
// advanced prefs
|
||||
pref("advanced.mailftp", false);
|
||||
|
|
Загрузка…
Ссылка в новой задаче