🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.netbsd.source-changes
Article #16

Re: CVS commit: src/sys/dev/usb

#16
From: Greg Troxel
Date: Sat, 24 Oct 2026 17:32
21 lines
2508 bytes
Jason Thorpe <thorpej@me.com> writes:

>> What does openindiana/illumos  do here?
>
> It is not an error to not use a constructor -<em-dash>- esp considering that the general memory allocator is built on top of pool_cache.
>
> IIRC, the original Solaris behavior was “uninitialized if no
> constructor specified”.  I would not advocate for “always zero-init if
> no constructor” because that could be wasteful.  I’d rather have it be
> an explicit ask when the pool_cache is initialized.

That sounds reasonable.   It seems like asking for zero and a
constructor should KASSERT and if not DIAGNOSTIC be an error.


--
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: <rmibj8j80o1.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-mail
References: <> <19325F52-6F66-46DE-BECC-9723B50C7FAB@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 13:32:14 -0400
Organization: Newsgate at muc.de e.V.
Sender: source-changes-d-owner@NetBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <rmibj8j80o1.fsf@s1.lexort.com>
References: <> <19325F52-6F66-46DE-BECC-9723B50C7FAB@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="25149"; 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=1792863134; bh=DWEl3HPWhMxOhm+HQgunwLJ3LCWA62SvxTtiP94jwXc=;
	h=From:To:Cc:Subject:In-Reply-To:References:Date;
	b=HqEQOgNcx3bf/mJ2zk2Bsb9coXzdHFR0DNOH1OSZ8odZriONbIqfCU6PbkZygKcui
	 HT9PXJr7GO3TwV5aMqAwXSpX4il0h1V+zVkUKfc8LRF+/qIUnO1kYuAYkMC7aKm3A7
	 K+KGv69QUwL7EzIcI1yluNspCO7JknPAdd+kNf3w=
In-Reply-To: <19325F52-6F66-46DE-BECC-9723B50C7FAB@me.com> (Jason Thorpe's
	message of "Sat, 24 Oct 2026 10:46:24 -0400")
OpenPGP: id=098ED60E
Precedence: bulk
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes