From owner-cvs-all@FreeBSD.ORG Fri Jul 18 09:04:41 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C157637B40A; Fri, 18 Jul 2003 09:04:37 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21F5A43F75; Fri, 18 Jul 2003 09:04:37 -0700 (PDT) (envelope-from harti@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h6IG4a0U027351; Fri, 18 Jul 2003 09:04:36 -0700 (PDT) (envelope-from harti@repoman.freebsd.org) Received: (from harti@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h6IG4aBR027350; Fri, 18 Jul 2003 09:04:36 -0700 (PDT) Message-Id: <200307181604.h6IG4aBR027350@repoman.freebsd.org> From: Hartmut Brandt Date: Fri, 18 Jul 2003 09:04:36 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/vm uma_core.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2003 16:04:42 -0000 harti 2003/07/18 09:04:36 PDT FreeBSD src repository Modified files: sys/vm uma_core.c Log: When INVARIANTS is defined make sure that uma_zalloc_arg (and hence uma_zalloc) is called with exactly one of either M_WAITOK or M_NOWAIT and that it is called with neither M_TRYWAIT or M_DONTWAIT. Print a warning if anything is wrong. Default to M_WAITOK of no flag is given. This is the same test as in malloc(9). Revision Changes Path 1.61 +20 -0 src/sys/vm/uma_core.c