[v3] mt_allocator performance improvements
Benjamin Kosnik
bkoz@redhat.com
Fri Mar 17 20:05:00 GMT 2006
Nice catch Paolo!
> > // Return this block to our list and update counters and
> > // owner id as needed.
> > - --__bin._M_used[__block->_M_thread_id];
> > + --__thread_bin._M_used;
> >
>
>
> Changed that line to:
> --_M_thread_bin[__block->_M_thread_id][__which]._M_used;
I'm testing this patch, as attached. It looks to be correct to me. I'll
check it in if the tests are ok.
-benjamin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: p.20060317-1
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20060317/ebefd914/attachment.ksh>
More information about the Libstdc++
mailing list