Overview
Artifact ID: | c0cb482c58080cd377df546fa228ce75c5bc41fe4582891ad0bec754fa461921 |
---|---|
Ticket: | 5b31b3f45e9a8150eef903081594e04beea8f4f5
Weak references are broken with the Apple runtime |
User & Date: | js on 2020-10-25 22:10:52 |
Changes
- icomment:
Looking at the code, it seems that `objc_destructInstance()` does not zero weak references at all in the Apple runtime. It seems to make weak references work at all, it is necessary to call into the runtime functions to allocate, retain, release and dealloc objects. Unfortunately, this does not allow to have some extra space before the object, as the current `+[alloc]` does for memory blocks belonging to the object.
- login: "js"
- mimetype: "text/x-markdown"