• 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: GC pros and cons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GC pros and cons


  • Subject: Re: GC pros and cons
  • From: James Gregurich <email@hidden>
  • Date: Fri, 26 Jun 2009 11:31:40 -0700

If my resource is handed off to some external subsystem for release and I can't DETERMINE the order of the releases with respect to each other and other components of my code, then I would call that non-deterministic and undesirable.

feel free to disagree. the purpose of my message was to publish a solution I found useful. One is free to use it or ignore it.


On Thursday, June 25, 2009, at 11:39PM, "Chris Idou" <email@hidden> wrote:
>
>
>
>________________________________
>From: James Gregurich <email@hidden>
>
>> I have read up on GC, and I don't like the idea of introducing non-deterministic behavior into my code base.
>
>
>I would question the assertion that GC introduces non-deterministic behavior, unless you consider the time it takes for particular code to execute to be "behavior".
>
>In which case standard malloc/free is not deterministic either, since algorithms for amalgamating free areas in the heap are not exactly predictable, and the time they take will not be constant across different calls.
>
>That's why if you were controlling the space shuttle you wouldn't use malloc/free OR GC.
>
>
>      Access Yahoo!7 Mail on your mobile. Anytime. Anywhere.
>Show me how: http://au.mobile.yahoo.com/mail
_______________________________________________

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

  • Follow-Ups:
    • Re: GC pros and cons
      • From: Michael Ash <email@hidden>
    • Re: GC pros and cons
      • From: Bill Bumgarner <email@hidden>
References: 
 >Re: GC pros and cons (From: Quincey Morris <email@hidden>)
 >Re: GC pros and cons (From: Chris Idou <email@hidden>)
 >RE: GC pros and cons (From: Jeff Laing <email@hidden>)
 >Re: GC pros and cons (From: "Stephen J. Butler" <email@hidden>)
 >Re: GC pros and cons (From: Peter Ammon <email@hidden>)
 >Re: GC pros and cons (From: Kyle Sluder <email@hidden>)
 >Re: GC pros and cons (From: Peter Ammon <email@hidden>)
 >Re: GC pros and cons (From: Kyle Sluder <email@hidden>)
 >Re: GC pros and cons (From: Peter Ammon <email@hidden>)
 >Re: GC pros and cons (From: Bill Bumgarner <email@hidden>)
 >Re: GC pros and cons (From: Peter Ammon <email@hidden>)
 >Re: GC pros and cons (From: James Gregurich <email@hidden>)
 >Re: GC pros and cons (From: Chris Idou <email@hidden>)

  • Prev by Date: Re: Hiding a running application
  • Next by Date: Unexpected NSWorkspaceDidMountNotification
  • Previous by thread: Re: GC pros and cons
  • Next by thread: Re: GC pros and cons
  • Index(es):
    • Date
    • Thread