mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
Double browser max heap size. Change shell heap size so it matches.
This commit is contained in:
parent
ccefa34eca
commit
90aa246044
@ -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 {
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user