site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The kernel stack size is fixed at 16KB (last I heard) per thread. MALLOC does not use stack mem, and incrementing an existing var does not use the stack, and finally if you really were blowing the stack it's an almost certainty that a panic would closely follow. So something else is probably going on. You may be scribbling on the stack via a bad ptr and thus overwriting your counter. On Apr 12, 2005, at 4:31 PM, 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.
Thanks Carl
Brian Bergstrand <http://www.bergstrand.org/brian/>, AIM: triryche206 PGP Key: <http://www.bergstrand.org/brian/misc/public_key.txt> You cannot make a man by standing a sheep on its hind legs. But by standing a flock of sheep in that position you can make a crowd of men. - - - Max Beerbohm As of 04:33:18 PM, iTunes is playing "Once In A Lifetime / The Killing Words" from "Identity Crisis" by "Section 16" -----BEGIN PGP SIGNATURE----- Version: PGP 8.1 iQA/AwUBQlw0RnnR2Fu2x7aiEQLZpACeKdkJE11cDD9tNQmeThFhM6LbkrQAn1AI fLJ259r6dK2gu05cgQyaPqel =S0Nk -----END PGP SIGNATURE----- _______________________________________________ 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... This email sent to site_archiver@lists.apple.com