You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by cx...@apache.org on 2017/03/20 03:36:49 UTC

[23/50] incubator-weex git commit: * [ios] remove dlsym for jscore garbage Collection

* [ios] remove dlsym for jscore garbage Collection


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

Branch: refs/heads/0.11-dev
Commit: 2d7b86823d18923a46b5c784ff9928dd8b2e63d7
Parents: 1e4105f
Author: acton393 <zh...@gmail.com>
Authored: Fri Mar 10 11:24:54 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Fri Mar 10 11:24:54 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Bridge/WXJSCoreBridge.m | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/2d7b8682/ios/sdk/WeexSDK/Sources/Bridge/WXJSCoreBridge.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Bridge/WXJSCoreBridge.m b/ios/sdk/WeexSDK/Sources/Bridge/WXJSCoreBridge.m
index 1ebfa6b..593ed27 100644
--- a/ios/sdk/WeexSDK/Sources/Bridge/WXJSCoreBridge.m
+++ b/ios/sdk/WeexSDK/Sources/Bridge/WXJSCoreBridge.m
@@ -211,15 +211,15 @@ typedef void (*WXJSCGarbageCollect)(JSContextRef);
 - (void)garbageCollect
 {
     // for dev and debug only!!
-    char str[80];
-    strcpy(str, "JSSynchron");
-    strcat(str, "ousGarbageColl");
-    strcat(str, "ectForDebugging");
-    WXJSCGarbageCollect garbageCollect = dlsym(RTLD_DEFAULT, str);
-    
-    if (garbageCollect != NULL) {
-        garbageCollect(_jsContext.JSGlobalContextRef);
-    }
+//    char str[80];
+//    strcpy(str, "JSSynchron");
+//    strcat(str, "ousGarbageColl");
+//    strcat(str, "ectForDebugging");
+//    WXJSCGarbageCollect garbageCollect = dlsym(RTLD_DEFAULT, str);
+//    
+//    if (garbageCollect != NULL) {
+//        garbageCollect(_jsContext.JSGlobalContextRef);
+//    }
 }
 
 #pragma mark - Private