Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > muc.lists.netbsd.source-changes > #156250
| From | Greg Troxel <gdt@lexort.com> |
|---|---|
| Newsgroups | muc.lists.netbsd.source-changes |
| Subject | Re: CVS commit: src/sys/dev/usb |
| Date | 2026-10-24 13:32 -0400 |
| Organization | Newsgate at muc.de e.V. |
| Message-ID | <rmibj8j80o1.fsf@s1.lexort.com> (permalink) |
| References | <> <19325F52-6F66-46DE-BECC-9723B50C7FAB@me.com> |
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
Back to muc.lists.netbsd.source-changes | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: CVS commit: src/sys/dev/usb Greg Troxel <gdt@lexort.com> - 2026-10-24 10:37 -0400
Re: CVS commit: src/sys/dev/usb Jason Thorpe <thorpej@me.com> - 2026-10-24 10:46 -0400
Re: CVS commit: src/sys/dev/usb Greg Troxel <gdt@lexort.com> - 2026-10-24 13:32 -0400
csiph-web