Article View: muc.lists.netbsd.source-changes
Article #13Re: CVS commit: src/sys/dev/usb
From: Greg Troxel
Date: Sat, 24 Oct 2026 14:37
Date: Sat, 24 Oct 2026 14:37
29 lines
2844 bytes
2844 bytes
Jason Thorpe <thorpej@me.com> writes: >> On Oct 22, 2026, at 7:23โฏPM, Taylor R Campbell <riastradh@netbsd.org> wrote: >> >> I think this change may not be correct. I don't think pool_cache_get >> respects PR_ZERO. Perhaps we should add an assertion about this and >> audit the system for it (or make it work by judiciously adding a >> memset if PR_ZERO is passed). > > pool_cache_get() is intended to return constructed objects. I guess making it support PR_ZERO is OK so long as the cache doesnโt specify a constructor function, and should blow up on incompatible arguments if it does have one. That's a really good point. I had forgotten the wisdom of the original papers. I wonder if it's basically an error to have a pool cache without a constructor (semantically). I suppose "all zeros if there is no constructor" is perhaps a reasonable sort-of-constructor, as in "safe state before real construction". What does openindiana/illumos do here? -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<rmijyn788ra.fsf@s1.lexort.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<> <6BE76039-D038-4D33-9E1C-84A5385FD48F@me.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Greg Troxel <gdt@lexort.com> Newsgroups: muc.lists.netbsd.source-changes Subject: Re: CVS commit: src/sys/dev/usb Date: Sat, 24 Oct 2026 10:37:29 -0400 Organization: Newsgate at muc.de e.V. Sender: source-changes-d-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <rmijyn788ra.fsf@s1.lexort.com> References: <> <6BE76039-D038-4D33-9E1C-84A5385FD48F@me.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="81396"; mail-complaints-to="news-admin@muc.de" User-Agent: Gnus/5.13 (Gnus v5.13) Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (1024-bit key) header.d=lexort.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lexort.com; s=mail; t=1792852650; bh=TT2EKUlrEN3bqPF0ApoH8ZSiAXWbEEaOCYE01zw+5Uw=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=SUsii/E8g3Y9dVvtNP3IIxbzgDMESCaB2G+bH3j01O4BbJCmw0U2jG8ot4DIuqBUf rUcE6W4BOiwg7uuxSOBX/aXqCNLQYSSDmFKe1PoJfACdBRDcMCLEC/4wxz3HUAcY0k zw5TcnmzRSZqlAbcdDPBPc6OQLDBJSC7INqg0Te8= In-Reply-To: <6BE76039-D038-4D33-9E1C-84A5385FD48F@me.com> (Jason Thorpe's message of "Fri, 23 Oct 2026 05:53:38 -0700") OpenPGP: id=098ED60E Precedence: bulk X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes