From owner-freebsd-current Wed Dec 8 9:11:49 1999 Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 608) id 3D85415567; Wed, 8 Dec 1999 09:11:41 -0800 (PST) From: "Jonathan M. Bresler" To: current@FreeBSD.ORG Subject: kern/kern_malloc.c:malloc_init() called twice on devbuf Message-Id: <19991208171141.3D85415567@hub.freebsd.org> Date: Wed, 8 Dec 1999 09:11:41 -0800 (PST) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [this is a brand spanking new kernel, just compiled 41 minutes ago cvsup'ped just this morning] i was reading the kern_malloc code teh other day and wondered why we have code to return is the malloc_init() has already been dont on that type.....well, we call malloc_init() twice on devbuf. that surprised me. baby:[220] cvs -R diff kern_malloc.c Index: kern_malloc.c =================================================================== RCS file: /usr/home/ncvs/src/sys/kern/kern_malloc.c,v retrieving revision 1.62 diff -r1.62 kern_malloc.c 478a479 > printf("%s ", type->ks_shortdesc); 482c483,485 < if (type->ks_limit != 0) --- > if (type->ks_limit != 0) { > printf("kern_malloc.c:malloc_init() re-init'ing %s\n", > type->ks_shortdesc); 483a487 > } Rebooting... Copyright (c) 1992-1999 The FreeBSD Project. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. atkbddev isa_devlist memdesc mbuf devbuf isadev ZONE VM pgdata UFS mount UFS quo ta UFS ihash FFS node dirrem mkdir diradd freefile freeblks freefrag allocindir indirdep allocdirect bmsafemap newblk inodedep pagedep p1003.1b ip_moptions ip_f low in_multi igmp routetbl ether_multi ifaddr BPF Export Host vnodes mount clust er_save buffer vfscache BIO buffer pcb soname ptys ttys shm rman iov select ioct lops SWAP eventhandler disk bus sysctl cred subproc proc session pgrp free ip6nd p ip6opt temp devbuf kern_malloc.c:malloc_init() re-init'ing devbuf cache lockf KTRACE prison atfork atexit zombie proc-args sigio file file desc de v_t timecounter kld Gzip trees FreeBSD 4.0-CURRENT #0: Wed Dec 8 11:27:22 EST 1 999 jmb@baby.rad.usi.net:/usr/local/src/sys/compile/BABY Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 399062947 Hz jmb To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message