Double browser max heap size. Change shell heap size so it matches.

This commit is contained in:
Luke Wagner 2010-06-30 20:02:00 -07:00
parent abc0ed6b6d
commit 42890c79a8
3 changed files with 3 additions and 3 deletions

View File

@ -3934,7 +3934,7 @@ SetMemoryHighWaterMarkPrefChangedCallback(const char* aPrefName, void* aClosure)
// Let's limit the high water mark for the first one to 32MB,
// and second one to 0xffffffff.
JS_SetGCParameter(nsJSRuntime::sRuntime, JSGC_MAX_MALLOC_BYTES,
32L * 1024L * 1024L);
64L * 1024L * 1024L);
JS_SetGCParameter(nsJSRuntime::sRuntime, JSGC_MAX_BYTES,
0xffffffff);
} else {

View File

@ -5102,7 +5102,7 @@ main(int argc, char **argv, char **envp)
CALIBRATION_DELAY_COUNT = 0;
#endif
rt = JS_NewRuntime(128L * 1024L * 1024L);
rt = JS_NewRuntime(64L * 1024L * 1024L);
if (!rt)
return 1;

View File

@ -2804,7 +2804,7 @@ JS_EXPORT_API(void) DumpJSObject(JSObject* obj)
JS_EXPORT_API(void) DumpJSValue(jsval val)
{
printf("Dumping 0x%ll.\n", (long long) JSVAL_BITS(val));
printf("Dumping 0x%llu.\n", (long long) JSVAL_BITS(val));
if(JSVAL_IS_NULL(val)) {
printf("Value is null\n");
}