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

Re: Kernel stack size


  • Subject: Re: Kernel stack size
  • From: Justin Walker <email@hidden>
  • Date: Tue, 12 Apr 2005 14:43:05 -0700


On Apr 12, 2005, at 14:31, Carl Smith wrote:

Is there a way to determine the kernel stack size dynamically?

I am allocating some buffers using _MALLOC and after about a loop of 10,
the global incremental counter resets itself to 0, so I am thinking I am
blowing the stack size.

I'm not sure I understand. How does using _MALLOC affect the stack? Also, what is "the global incremental counter"?


If you blow the stack size, you will know, since the kernel will panic.

In any case, the kernel stack size is *small*, but as long as you don't declare large arrays on the stack, or go deeply recursive, you should be fine.

Cheers,

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for General Semantics
--------
If you're not confused,
You're not paying attention
--------

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Kernel stack size (From: "Carl Smith" <email@hidden>)

  • Prev by Date: Kernel stack size
  • Next by Date: Fwd: Kernel stack size
  • Previous by thread: Kernel stack size
  • Next by thread: Fwd: Kernel stack size
  • Index(es):
    • Date
    • Thread