From owner-cvs-all Wed May 1 19: 8:56 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B48DC37B41D; Wed, 1 May 2002 19:08:48 -0700 (PDT) Received: (from jeff@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4228mb52019; Wed, 1 May 2002 19:08:48 -0700 (PDT) (envelope-from jeff) Message-Id: <200205020208.g4228mb52019@freefall.freebsd.org> From: Jeff Roberson Date: Wed, 1 May 2002 19:08:48 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_malloc.c src/sys/vm uma_core.c uma_dbg.c uma_dbg.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jeff 2002/05/01 19:08:48 PDT Modified files: sys/kern kern_malloc.c sys/vm uma_core.c uma_dbg.c uma_dbg.h Log: Remove the temporary alignment check in free(). Implement the following checks on freed memory in the bucket path: - Slab membership - Alignment - Duplicate free This previously was only done if we skipped the buckets. This code will slow down INVARIANTS a bit, but it is smp safe. The checks were moved out of the normal path and into hooks supplied in uma_dbg. Revision Changes Path 1.106 +0 -6 src/sys/kern/kern_malloc.c 1.18 +21 -19 src/sys/vm/uma_core.c 1.2 +95 -0 src/sys/vm/uma_dbg.c 1.2 +2 -0 src/sys/vm/uma_dbg.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message