svn commit: r281162 - head/sys/vm

luke luke.tw at gmail.com
Thu Apr 9 07:53:27 UTC 2015


On Thu, Apr 9, 2015 at 1:27 PM, Justin T. Gibbs <gibbs at scsiguy.com> wrote:

> On Apr 6, 2015, at 12:45 PM, Dmitry Chagin <dchagin at FreeBSD.org> wrote:
> >
> > Author: dchagin
> > Date: Mon Apr  6 18:45:41 2015
> > New Revision: 281162
> > URL: https://svnweb.freebsd.org/changeset/base/281162
> >
> > Log:
> >  Properly calculate "UMA Zones" per cpu cache size. Avoid allocating
> >  an extra struct uma_cache since the struct uma_zone already has one.
>
> Isn’t the better fix here to use a C99 style flexible array member (i.e.
> "struct uma_cache uz_cpu[];” at the end of struct uma_zone)?
>
>
Agree. It will save one struct uma_cache space for 5 UMA_internal zones.

--
luke


More information about the svn-src-all mailing list