hot path optimizations in uma_zalloc() & uma_zfree()

Max Laier max at love2party.net
Thu Jun 30 13:32:20 GMT 2005


On Thursday 30 June 2005 14:15, Max Laier wrote:
> On Thursday 30 June 2005 00:08, ant wrote:
> > @@ -2263,8 +2262,7 @@
> >    if (bucket->ub_cnt < bucket->ub_entries) {
> >     KASSERT(bucket->ub_bucket[bucket->ub_cnt] == NULL,
> >         ("uma_zfree: Freeing to non free bucket index."));
> > -   bucket->ub_bucket[bucket->ub_cnt] = item;
> > -   bucket->ub_cnt++;
> > +   bucket->ub_bucket[bucket->ub_cnt++] = item;
>
> This changes semantics, as far as I understand.  Might be a consequence of
> the other work you are doing, but doesn't seem right from a first glance.

Ignore that, I was reading things backward - sorry for the noise.

-- 
/"\  Best regards,                      | mlaier at freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier at EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20050630/b7e917a8/attachment.bin


More information about the freebsd-hackers mailing list