-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[retain cycles] Improve the filtering of retain cycles reporting
Summary: Before we were a bit inconsistent when filtering the objects that can make the cycle that we report: we were checking only some of the objects in the cycle, now we check the properties in all the objects. The properties are: 1. Non nil 2. Not part of a cycle previously reported 3. Known (We have a decompiler value for it) 4. We only take into account ObjC classes or blocks This means that we can be sure that we won't report on cycles that include structs or C++ classes. Reviewed By: skcho Differential Revision: D56636988 fbshipit-source-id: 6c5bb8ce17c10b1f79b905139917e4e76b0593ff
- Loading branch information
1 parent
87c53a9
commit df9bf7d
Showing
5 changed files
with
74 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
codetoanalyze/objcpp/retain-cycles/ObjCPPStruct.mm, A.aFnBad, 2, RETAIN_CYCLE, no_bucket, ERROR, [assignment of self->_weakHolder part of the trace starts here,parameter `self` of A.aFnBad,assigned,assignment of self->_weakHolder->ref part of the trace starts here,allocated by call to `new` (modelled),in call to `WeakHolder::WeakHolder`,parameter `this` of WeakHolder::WeakHolder,return from call to `WeakHolder::WeakHolder`,assigned,retain cycle here] | ||