• 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: Message stack limitations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Message stack limitations


  • Subject: Re: Message stack limitations
  • From: Phil <email@hidden>
  • Date: Wed, 3 Sep 2008 23:51:13 +1200

On Wed, Sep 3, 2008 at 9:23 PM, RGA <email@hidden> wrote:
> Putting aside for now whether this is the right way to implement, my
> question is how are messages processed?  What is the maximum stack depth for
> number of recursive messages?  How is this affected by the introduction of
> 64bit frameworks?  Is there a way to see the current stack depth
> auto-magically?  What happens in the event of the message handling stack
> becoming full and is there a way to deal with this event?
>

Some of these questions are answered in QA1419:
<http://developer.apple.com/qa/qa2005/qa1419.html>

Although you may think of the stack in terms of stack-frames, what
really matters to the operating system is the memory footprint of the
stack (since each frame isn't a constant size---it varies depending on
the memory requirements of the called method). You can examine the
current stack (in terms of frames---more specifically, return
addresses) using backtrace(3):
<http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/backtrace.3.html>

Generally though, if you're hitting the stack size limit, you're doing
something wrong.

Phil
_______________________________________________

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: 
 >Message stack limitations (From: RGA <email@hidden>)

  • Prev by Date: View animator, how to do explicit animations / animation groups?
  • Next by Date: Binding custom views to model arrays (or trees)
  • Previous by thread: Message stack limitations
  • Next by thread: Re: Message stack limitations
  • Index(es):
    • Date
    • Thread