• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Classes incompatible with weak references
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Classes incompatible with weak references


  • Subject: Re: Classes incompatible with weak references
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 13 Aug 2012 15:40:39 -0700

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 (email@hidden)

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:

This email sent to email@hidden

References: 
 >Classes incompatible with weak references (From: Ben <email@hidden>)
 >Re: Classes incompatible with weak references (From: Kyle Sluder <email@hidden>)
 >Re: Classes incompatible with weak references (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Classes incompatible with weak references (From: John McCall <email@hidden>)
 >Re: Classes incompatible with weak references (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Classes incompatible with weak references (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: How do I get memory usage numbers?
  • Next by Date: Re: Using NSPipe to get system command output
  • Previous by thread: Re: Classes incompatible with weak references
  • Next by thread: Re: Classes incompatible with weak references
  • Index(es):
    • Date
    • Thread