Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  8 Dec 1999 09:11:41 -0800 (PST)
From:      "Jonathan M. Bresler" <jmb@hub.freebsd.org>
To:        current@FreeBSD.ORG
Subject:   kern/kern_malloc.c:malloc_init() called twice on devbuf
Message-ID:  <19991208171141.3D85415567@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

[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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991208171141.3D85415567>