This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: PATCH (libstdc++-v3 mainline): Re-enable i386/atomicity.h


Benjamin Kosnik <bkoz@redhat.com> writes:

> >Most interestingly, IMO, is the usage of these operations in
> >basic_string. It would be interesting to find out how often atomic_add
> >is used in an application that makes intense use of std::string.
> 
> This is also of interest to me. I think that Paolo has recently found
> some MT string tests, so maybe this will be answered more definitively
> in the future. Perhaps he can cc you on his results.

I would certainly be interested. I think it might be best to
instrument atomic_add with a global counter (protected by a mutex :-),
then run some applications with that instrumented library. If
possible, recompilation of, say, KDE, should be attempted.

Regards,
Martin


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