Date: Mon, 09 Apr 2001 16:10:48 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: John Baldwin <jhb@FreeBSD.org> Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: RE: cvs commit: src/sys/kern subr_witness.c Message-ID: <XFMail.010409161048.jhb@FreeBSD.org> In-Reply-To: <200104092234.f39MY6C59104@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 09-Apr-01 John Baldwin wrote: > jhb 2001/04/09 15:34:06 PDT > > Modified files: > sys/kern subr_witness.c > Log: > Maintain a reference count on the witness struct. When the reference > count drops to 0 in witness_destroy, set the w_name and w_file pointers > to point to the string "(dead)" and the w_line field to 0. This way, > if a mutex of a given name is used only in a module, then as long as > all mutexes in the module are destroyed when the module is unloaded, > witness will not maintain stale references to the mutex's name in the > module's data section causing a panic later on when the w_name or w_file > field's are examined. The longer fix is to actually remove the witness structure in question from the tree, but this will work as a stop gap solution until I can get around to the longer variant. -- John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010409161048.jhb>