mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Double browser max heap size. Change shell heap size so it matches.
This commit is contained in:
parent
abc0ed6b6d
commit
42890c79a8
@ -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