Date: Thu, 25 Jul 1996 10:50:51 -0700 From: "Jin Guojun[ITG]" <jin@george.lbl.gov> To: bugs@freebsd.org Cc: mckusick@McKusick.COM Subject: A way to fix MFREE hanging the system Message-ID: <199607251750.KAA18676@george.lbl.gov>
next in thread | raw e-mail | index | archive | help
Hi folks, Here is the way how SunOS 4.1.x to fix MFREE hanging the system. Can we do the similar thing in BSD MFREE()? It is similar to what I mentioned in last email. I do not like to use panic() here. We may just print error message out and bypass the free body. How do you think? -Jin ----------------- I did not disclose Sun stuff ----------------------- ----------------- This looks like orginal BSD (4.2?) stuff ----------- ----------------- Why is it changed ? ------------------------------- /* @(#)mbuf.h 1.1 92/07/30 SMI; from UCB 7.10 2/8/88 */ /* * Copyright (c) 1982, 1986, 1988 Regents of the University of California. * All rights reserved. ...... ...... #define MFREE(m, n) \ { int ms = splimp(); \ if ((m)->m_type == MT_FREE) panic("mfree"); \ mbstat.m_mtypes[(m)->m_type]--; mbstat.m_mtypes[MT_FREE]++; \ (m)->m_type = MT_FREE; \ if (M_HASCL(m)) \ ... ... }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607251750.KAA18676>