Re: [NSThread callStackSymbols] weirdness
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