Date: Wed, 14 Jun 2000 11:31:42 -0700 (PDT) From: Bruce Evans <bde@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys malloc.h src/sys/kern kern_malloc.c Message-ID: <200006141831.LAA08374@freefall.freebsd.org>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006141831.LAA08374>
