Date: Mon, 1 Sep 2003 12:30:16 +0200 From: Pawel Jakub Dawidek <nick@garage.freebsd.pl> To: "Kenneth D. Merry" <ken@kdm.org> Cc: current@FreeBSD.org Subject: Re: need some debugging help Message-ID: <20030901103016.GI47959@garage.freebsd.pl> In-Reply-To: <20030901064840.GA61253@panzer.kdm.org> References: <20030831070854.GA54748@panzer.kdm.org> <16343.1062327167@critter.freebsd.dk> <20030901064840.GA61253@panzer.kdm.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--xAcdXodsXNqdgVFn Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 01, 2003 at 12:48:41AM -0600, Kenneth D. Merry wrote: +> - I tried just holding a mutex all the time, but obviously you can't +> malloc while holding a mutex (except Giant), and the sysctl code does= a +> number of mallocs. (The original cause of this problem -- M_WAITOK +> mallocs.) I've proposed some time ago changing M_WAITOK to M_NOWAIT, because function/macros responsible for sysctl creation could failed from other reasons, so I don't see any reason why they couldn't fail because of insufficient memory. Caller is obliged to check return value... --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --xAcdXodsXNqdgVFn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBP1MfuD/PhmMH/Mf1AQEaYwP/VwvgHV8bbzCL/I6km965uSBoZz0Yug1x QMWqC6UznCtVO9/+IVvEZ0poL5aP3UsH8nHlWOV2FNJazHIPQlqVhohPh/gvoNNy 5b6ajiACHmWjla8mHgDAqV2AmXfCluRpS1BaV9bvwM3sSOo0rsZE2wUnmAFAGUmr I6DQLx9CFc4= =XRNH -----END PGP SIGNATURE----- --xAcdXodsXNqdgVFn--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030901103016.GI47959>