PATCH: include/ext/mt_allocator.h

Loren James Rittle rittle@latour.rsch.comm.mot.com
Mon Mar 1 20:51:00 GMT 2004


In article <Pine.BSF.4.58.0402270043270.55602@acrux.dbai.tuwien.ac.at>,
Gerald Pfeifer<gerald@pfeifer.com> writes:

> On Fri, 23 Jan 2004, Loren James Rittle wrote:
>> As committed to mainline.  Bootstrapped and regression checked on
>> i386-unknown-freebsd4.9 (and elsewhere by others).  Radical
>> performance improvement noted on various platforms.  Thank you Stefan!
>> 
>> 2004-01-23  Stefan Olsson  <stefan@snon.net>
>> 
>> * include/ext/mt_allocator.h: Reduce lock contention.

> If this is so useful, would that be suitable for the 3.4 branch as well?

Yes, but it requires other patches.  If we make mt_allocator the
default for the 3.4 release, then the above patch must be included IMHO.

> (Does this also help with the non-thread case?)

Above patch, no.



More information about the Libstdc++ mailing list