mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 18:42:40 +08:00
Merge pull request #588 from pandamicro/v1.4
Use incremental gc by default
This commit is contained in:
@@ -631,7 +631,7 @@ void ScriptingCore::createGlobalContext() {
|
||||
|
||||
_rt = JS_NewRuntime(32L * 1024L * 1024L);
|
||||
JS_SetGCParameter(_rt, JSGCParamKey::JSGC_MAX_BYTES, 0xffffffff);
|
||||
JS_SetGCParameter(_rt, JSGCParamKey::JSGC_MODE, JSGC_MODE_COMPARTMENT);
|
||||
JS_SetGCParameter(_rt, JSGCParamKey::JSGC_MODE, JSGC_MODE_INCREMENTAL);
|
||||
|
||||
JS_SetTrustedPrincipals(_rt, &shellTrustedPrincipals);
|
||||
JS_SetSecurityCallbacks(_rt, &securityCallbacks);
|
||||
|
||||
@@ -856,6 +856,8 @@ JS_BINDED_FUNC_IMPL(MinXmlHttpRequest, send)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (args.get(0).isNullOrUndefined())
|
||||
{}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user