• 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: Garbage collector vs variable lifetime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Garbage collector vs variable lifetime


  • Subject: Re: Garbage collector vs variable lifetime
  • From: Paul Sargent <email@hidden>
  • Date: Sun, 8 Jun 2008 11:23:16 +0100


On 8 Jun 2008, at 01:23, Bill Bumgarner wrote:

One of the tenets of GCC is that *it controls the layout of the stack always* and this is done quite explicitly because of performance.

I think this is the crucial point when considering how any GC will work with gcc.


If gcc controls the stack, it's impossible for the programmer to dictate what is in the root set. They can make some suggestions, and possibly influence it with hacks (such as [data self]), but absolute control is ceded to the compiler.

It's a fundamental truth for any GC on top of gcc, and one that makes the job of writing the GC one I wouldn't ever want. I don't think it's possible to make a 100% fool proof GC without more compiler support, or internal pointer support (which is non-trivial).


_______________________________________________

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: 
 >Re: Garbage collector vs variable lifetime (From: Peter Duniho <email@hidden>)
 >Re: Garbage collector vs variable lifetime (From: "Hamish Allan" <email@hidden>)
 >Re: Garbage collector vs variable lifetime (From: "Hamish Allan" <email@hidden>)
 >Re: Garbage collector vs variable lifetime (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: Cocoa n00b frustrations
  • Next by Date: Re: 3rd Party Nonsense (was Re: Regular Expressions?)
  • Previous by thread: Re: Garbage collector vs variable lifetime
  • Next by thread: Re: Garbage collector vs variable lifetime
  • Index(es):
    • Date
    • Thread