You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2018/05/10 04:19:50 UTC

incubator-weex git commit: * [iOS] remove garbageCollect as it will block thread

Repository: incubator-weex
Updated Branches:
  refs/heads/master 6df9d3ead -> af222ecd7


* [iOS] remove garbageCollect as it will block thread


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/af222ecd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/af222ecd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/af222ecd

Branch: refs/heads/master
Commit: af222ecd749d10d9489b898f94e1f2a6be2e6316
Parents: 6df9d3e
Author: acton393 <zh...@gmail.com>
Authored: Thu May 10 12:19:23 2018 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Thu May 10 12:19:23 2018 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/af222ecd/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
index b4c5a2e..ce1154d 100644
--- a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
+++ b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
@@ -485,9 +485,6 @@ typedef enum : NSUInteger {
     }
 
     [[WXSDKManager bridgeMgr] destroyInstance:self.instanceId];
-    if (_instanceJavaScriptContext && !_debugJS) {
-        JSGarbageCollect(_instanceJavaScriptContext.javaScriptContext.JSGlobalContextRef);
-    }
     _instanceJavaScriptContext = nil;
     
     if (_componentManager) {