Skip to content

Commit

Permalink
* [ios] remove dlsym for jscore garbage Collection
Browse files Browse the repository at this point in the history
  • Loading branch information
acton393 committed Mar 10, 2017
1 parent 1e4105f commit 2d7b868
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ios/sdk/WeexSDK/Sources/Bridge/WXJSCoreBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -211,15 +211,15 @@ - (void)resetEnvironment
- (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
Expand Down

0 comments on commit 2d7b868

Please sign in to comment.