• 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: correctly Controlling Garbage Collection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: correctly Controlling Garbage Collection


  • Subject: Re: correctly Controlling Garbage Collection
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 21 Oct 2009 19:06:25 -0500
  • Organization: Rogue Research Inc.

On 10/16/09 2:17 AM, WareTo Development said:

>So we thought the best thing would be to force a garbage collection
>operation at a time of our choosing.  Normally, this occurs at Mouse
>up, after the user has finished his drawing. A split second of garbage
>collection then would be barely noticeable by the user.
>
>So, we looked for a call, and thanks to this list we found
>objc_collect (OBJC_EXHAUSTIVE_COLLECTION | OBJC_WAIT_UNTIL_DONE);
>.
>Unfortunately, this does not solve our problem. That call does not
>insure a garbage collection operation synchronously, nor shortly after
>one returns to the main event loops. It does seem to cause one a short
>time later, but by then the user might be drawing with the pen again.
>
>We saw that a couple other people complained about this call not doing
>what they expected, but this was a while back, and we have not seen
>any new discussions about it

In my experience, this has not changed in 10.6.1.
OBJC_EXHAUSTIVE_COLLECTION | OBJC_WAIT_UNTIL_DONE does not do what its
name implies.  Which is a real shame because it would be useful for debugging.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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: 
 >correctly Controlling Garbage Collection (From: WareTo Development <email@hidden>)

  • Prev by Date: Re: info gc-roots interpretation
  • Next by Date: Re: Reading NSInputStream
  • Previous by thread: Re: correctly Controlling Garbage Collection
  • Next by thread: OK/Cancel buttons on NSColorPanel
  • Index(es):
    • Date
    • Thread