From owner-cvs-all Wed Jun 14 11:31:51 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id E6C7937B87A; Wed, 14 Jun 2000 11:31:43 -0700 (PDT) (envelope-from bde@FreeBSD.org) Received: (from bde@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA08374; Wed, 14 Jun 2000 11:31:42 -0700 (PDT) (envelope-from bde@FreeBSD.org) Message-Id: <200006141831.LAA08374@freefall.freebsd.org> From: Bruce Evans Date: Wed, 14 Jun 2000 11:31:42 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys malloc.h src/sys/kern kern_malloc.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG bde 2000/06/14 11:31:42 PDT Modified files: sys/sys malloc.h sys/kern kern_malloc.c Log: sys/malloc.h: Order the SYSINIT() for MALLOC_DEFINE() correctly so that malloc() doesn't have to waste time initializing itself. The (SI_SUB_KMEM, SI_ORDER_ANY) order was shared with syscons' SYSINIT() for scmeminit(), and scmeminit() calls malloc(), so malloc() initialization was not always complete on the first call to malloc(). kern/kern_malloc.c: - Removed self-initialization in malloc(). - Removed half-baked sanity check in free(). Trust MALLOC_DEFINE(). Revision Changes Path 1.50 +2 -2 src/sys/sys/malloc.h 1.66 +2 -15 src/sys/kern/kern_malloc.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message