Bug 24715 - __exchange_and_add is called too much
Summary: __exchange_and_add is called too much
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 4.1.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-07 17:35 UTC by Andrew Pinski
Modified: 2006-05-15 16:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2005-11-07 17:35:05 UTC
> __gnu_cxx::__exchange_and_add shows up in profiles of the PowerDNS recursor.
> http://wiki.powerdns.com

The issue here is that __exchange_and_add is called too much and not it is inlined.  Now someone should go and figure out why this is called too much (I don't have a profile).
Comment 1 Paolo Carlini 2005-11-07 17:38:21 UTC
.. on the other hand, I think we should close this one, sorry ;) As long as we
have a reference counted string and the user cannot disable the use of atomic
operations when single threaded, there isn't much we can do. Agreed?
Comment 2 Andrew Pinski 2005-11-07 17:39:33 UTC
I actually disagree with that.  We really need more info (I don't have the profiles to see why we are calling this too much but we really need to figure it out).
Comment 3 Paolo Carlini 2005-11-07 17:41:02 UTC
(In reply to comment #2)
> I actually disagree with that.  We really need more info (I don't have the
> profiles to see why we are calling this too much but we really need to figure
> it out).

Whatever... ;)
Comment 4 Benjamin Kosnik 2006-03-03 18:05:12 UTC
This is being treated as a placeholder until there is actually information for reproducing the issue for the rest of us....

For information on the kinds of performance test cases that are useful, please consult the files in testsuite/performance.

-benjamin
Comment 5 Paolo Carlini 2006-05-15 16:49:50 UTC
Feedback not forthcoming.