-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework how weak tracking is performed
Due to how the Objective C runtime works, if an object is in the middle of deallocation, a weak store should not be attempted becase the object’s weak table is already freed. Instead, I am now using a proxy objects, which is set as an associated object in question. If the object is in the middle of deallocation, the associated object will release at the end of deallocation. Closes #428
- Loading branch information
Showing
1 changed file
with
41 additions
and
7 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