Re: Kernel stack size
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