-
Notifications
You must be signed in to change notification settings - Fork 806
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix [NSThread currentThread] leak when underlying thread created exte…
…rnally.
- Loading branch information
Showing
2 changed files
with
84 additions
and
48 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
970bfa9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you share how big of a leak this was?
970bfa9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@triplef this was found just by inspection of the source instead of profiling. Unless your app frequently calls [NSThread currentThread] on many different background threads, you likely won't notice a difference in memory usage. There have been a number of fixes in recent releases (for e.g. leaks in UIKit) that, at least in our app, have made quite a difference though e.g. this was a significant fix for us: #1803