This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: notes on current atomics config and usage



> Benjamin, I would be happy to carry out some performance tests and 
> whatelse, but the patch doesn't apply cleanly here, lots of problems... 
> Anyway, in a few days I will be away for a week of vacations: please, 
> please, let's proceed carefully, separate well tested steps, in case we 
> can leave alone the i386/i686 (and Sparc v7/newer) case for now, and 
> deal with it separately.

Hang on. 

I promise to be careful here!

This patch isn't right either, although closer. Instead, I will modify to do the sane thing:

1) probe for builtins, if found, use
2) if not, look for atomics config, if found, use
3) fall back to mutex

This will keep our present behavior, but allow the builtins to be used
as they are added, without config changes.

About the performance test coverage issue: agreed. 
Do you want to add the "stupid testcase constructing and destroying a lot of strings"

?

-benjamin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]