• 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: [NSThread callStackSymbols] weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSThread callStackSymbols] weirdness


  • Subject: Re: [NSThread callStackSymbols] weirdness
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 04 Feb 2016 10:58:10 -0800

> On Feb 3, 2016, at 11:28 PM, Trygve Inda <email@hidden> wrote:
>
> why do I get to
> see 3 method calls in my own app in the first example, but only the last call in the second example?

Tail-call optimization, probably. If the last thing a function does is call another function, the optimizer will change the final subroutine call plus return into a jump. The downside is that the first function will no longer have an active stack frame so it won’t show up in backtraces, unless there is a symbol file available.

—Jens
_______________________________________________

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: 
 >[NSThread callStackSymbols] weirdness (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Weird Problem, is this an XCode Bug?
  • Next by Date: Re: Protocol extensions returning self
  • Previous by thread: [NSThread callStackSymbols] weirdness
  • Next by thread: Protocol extensions returning self
  • Index(es):
    • Date
    • Thread