From owner-freebsd-current Sun Feb 28 14:20:52 1999 Delivered-To: freebsd-current@freebsd.org Received: from dyn02.trafford.dementia.org (dyn02.trafford.dementia.org [204.29.154.130]) by hub.freebsd.org (Postfix) with ESMTP id 1A5B5153AA; Sun, 28 Feb 1999 14:20:48 -0800 (PST) (envelope-from assar@sics.se) Received: (from assar@localhost) by dyn02.trafford.dementia.org (8.9.1/8.7.3) id XAA52722; Sun, 28 Feb 1999 23:22:37 +0100 (CET) To: Eivind Eklund Cc: freebsd-current@FreeBSD.ORG Subject: Re: panic: zone: entry not free References: <19990223094120.A97001@hal.mpn.cp.philips.com> <199902230909.MAA01169@tejblum.dnttm.rssi.ru> <19990223105939.D97001@hal.mpn.cp.philips.com> <19990223161625.B10845@bitbox.follo.net> Mime-Version: 1.0 (generated by tm-edit 7.68) Content-Type: text/plain; charset=US-ASCII From: Assar Westerlund Date: 28 Feb 1999 23:22:35 +0100 In-Reply-To: Eivind Eklund's message of "Tue, 23 Feb 1999 16:16:26 +0100" Message-ID: <5lemnaxj6c.fsf@mg.trafford.dementia.org> Lines: 21 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Eivind Eklund writes: > > > That is, INVARIANTS in kernel incompatible with dynamic loading. > > > > Somehow this strikes me as a Bad Thing... > > It _is_ a bad thing. I've been pondering what to do with the > intrusive invariant checks - make them dependent on > INTRUSIVE_INVARIANTS, perhaps? That would still make some KLDs > incompatible with INTRUSIVE_INVARIANTS, but that is probably the best > we can do. I think that the goal should be to make KLDs work with all kinds of kernels. And the only place where this seems to be a problem is with zalloc and zfree. So it seems to me that one of the following could be done to solve it: a. make zalloc and zfree non-inline b. call zalloci and zfreei in code that can end up in KLDs c. call zalloci and zfreei everywhere where it's not performance-critical /assar To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message