From owner-freebsd-current Mon Feb 11 19:32: 1 2002 Delivered-To: freebsd-current@freebsd.org Received: from newman2.bestweb.net (newman2.bestweb.net [209.94.102.67]) by hub.freebsd.org (Postfix) with ESMTP id 6711737B61E for ; Mon, 11 Feb 2002 18:18:27 -0800 (PST) Received: from okeeffe.bestweb.net (okeefe.bestweb.net [209.94.100.110]) by newman2.bestweb.net (Postfix) with ESMTP id 3283F23068; Mon, 11 Feb 2002 21:17:43 -0500 (EST) Received: by okeeffe.bestweb.net (Postfix, from userid 0) id 598D69F34E; Mon, 11 Feb 2002 21:12:27 -0500 (EST) Date: Sat, 09 Feb 2002 10:50:39 -0500 (EST) From: John Baldwin To: Julian Elischer Subject: RE: cred stuff.. Cc: current@freebsd.org Message-Id: <20020212021227.598D69F34E@okeeffe.bestweb.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 09-Feb-02 Julian Elischer wrote: > I'm a little worried about invariants because the behaviour when > INVARIANTS is set wil be different to teh behaviour when it is off, which > is 'strange' to say the least. Normally the behaviour si the same but you > just check for invariant conditions. In this case it is providing the support for the implicit KASSERT(td_ucred != NULL)) everyhwere that td_ucred is used. :) If it makes you feel better, put it under INVARIANT_SUPPORT. It is the same type of test though, as it is a way of asserting that we aren't using td_ucred when a thread isn't in the kernel. > On Fri, 8 Feb 2002, John Baldwin wrote: > >> >> On 08-Feb-02 Julian Elischer wrote: >> > >> > I'd like to commit the code to keep the ucred across userland, >> > with the code to clear it to NULL kept under DEBUG ifdefs. >> >> Use INVARIANTS for the ifdef macro name, but sure. >> >> -- >> >> John Baldwin <>< http://www.FreeBSD.org/~jhb/ >> "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ >> > -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message