On Mon, Aug 13, 2012, at 02:47 PM, Mike Abdullah wrote:
> An idea I've vaguely wondered about would be turning the isa variable
> into a tagged pointer. If you know nothing is accessing it directly (to
> do so was deprecated with the modern runtime), then, say, the last 4 bits
> of the pointer could be used to record the retain count. Once they're
> used up (for those rare, highly retained objects), you spill over to
> runtime's existing system. Any calls to the runtime to determine an
> object's class would of course be aware of this and ignore those bits.

Unfortunately a lot of code out there accesses isa directly. We used to
be a pretty big offender.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to