• 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: 'leaks' disappear after a few seconds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'leaks' disappear after a few seconds


  • Subject: Re: 'leaks' disappear after a few seconds
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 29 Aug 2013 17:06:44 -0700


On Aug 29, 2013, at 3:06 PM, Jerry Krinock <email@hidden> wrote:

Thank you, Jens, but "conservative" can be ambiguous when the task is to detect something bad.  I think you mean that "when in doubt, 'leaks' does *not* report the leak". Correct?

You’re right, the terminology is confusing. The algorithm is really a conservative garbage collector*, which only frees blocks that it’s 100% sure are unreachable, otherwise it leaves them alone. The difference is that the leaks tool reports the block instead of freeing it. So it ends up skipping a block if it’s unsure it’s not reachable.

Interesting.  I thought it used magic.

Older tools like this did use magic, but had problems like requiring arcane ingredients, not working right during the full moon, and occasionally even summoning malign daemons.

—Jens

* http://en.wikipedia.org/wiki/Garbage_collection_(computer_science)#Precise_vs._conservative_and_internal_pointers
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >'leaks' disappear after a few seconds (From: Jerry Krinock <email@hidden>)
 >Re: 'leaks' disappear after a few seconds (From: Jens Alfke <email@hidden>)
 >Re: 'leaks' disappear after a few seconds (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: 'leaks' disappear after a few seconds
  • Next by Date: Multiple Versions of XCode
  • Previous by thread: Re: 'leaks' disappear after a few seconds
  • Index(es):
    • Date
    • Thread