On Thu, Apr 9, 2015 at 1:27 PM, Justin T. Gibbs <[email protected]> wrote:

> On Apr 6, 2015, at 12:45 PM, Dmitry Chagin <[email protected]> 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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to