From owner-cvs-all Wed May 12 4:11:34 1999 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 238E915379; Wed, 12 May 1999 04:11:31 -0700 (PDT) (envelope-from bde@FreeBSD.org) Received: (from bde@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id EAA46926; Wed, 12 May 1999 04:11:31 -0700 (PDT) (envelope-from bde@FreeBSD.org) Message-Id: <199905121111.EAA46926@freefall.freebsd.org> From: Bruce Evans Date: Wed, 12 May 1999 04:11:31 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_malloc.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk bde 1999/05/12 04:11:31 PDT Modified files: sys/kern kern_malloc.c Log: Fixed corruption of the kmemstatistcs list. The first malloc() with malloc type at the tail of the list changed the list from linear to circular. This seemed to cause surprisingly few problems, but it now causes weird output from `vmstat -m', probably because a more important malloc type is now at the tail of the list. Fix it by abusing ks_limit instead of ks_next as a flag for being on the list. Don't forget to clear the flag when a malloc type is uninit'ed. Uninit'ing is still fundamentally broken -- it loses history. Revision Changes Path 1.56 +9 -5 src/sys/kern/kern_malloc.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message