site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Apr 12, 2005, at 14:31, Carl Smith wrote: Is there a way to determine the kernel stack size dynamically? If you blow the stack size, you will know, since the kernel will panic. 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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"? 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. This email sent to site_archiver@lists.apple.com