Paolo Carlini - Re: Call for compiler help/advice: atomic builtins for v3 (original) (raw)
This is the mail archive of the gcc@gcc.gnu.orgmailing 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] |
- From: Paolo Carlini
- To: Paolo Carlini
- Cc: Mark Mitchell ,Richard Henderson , gcc at gcc dot gnu dot org,libstdc++ at gcc dot gnu dot org, Ian Lance Taylor
- Date: Sun, 06 Nov 2005 20:54:01 +0100
- Subject: Re: Call for compiler help/advice: atomic builtins for v3
- References: <436DDC36.8070308@suse.de> <436E4DF0.3070004@codesourcery.com> <436E51C4.8060108@suse.de> <436E5345.1010504@codesourcery.com> <20051106193118.GA31708@redhat.com> <436E5C18.2090104@codesourcery.com> <436E5DA7.2070307@suse.de>
Paolo Carlini wrote:
And, that if__exchange_and_add is showing up on the top of the profile, the fix probably isn't inlining -- it's to work out a way to make less use of atomic operations.
I want to add that we are certainly going in this direction, with a non-refcounted string for the next library ABI, also available as an extension, a preview for 4.1.
On the other hand, you cannot avoid atomic operations completely in the library, and in some areas, for instance tr1::shared_ptr, it's really the best you can use, using lock-free programming, to achieve MT-safety and good performance.
Also, I think an user yesterday had a good point: we should also make possible a configuration option enabling to build the library optimized for single thread. To be fair, Gerald Pfeifer also suggested that a lot of time ago...
Paolo.
- References:
- Call for compiler help/advice: atomic builtins for v3
* From: Paolo Carlini - Re: Call for compiler help/advice: atomic builtins for v3
* From: Mark Mitchell - Re: Call for compiler help/advice: atomic builtins for v3
* From: Paolo Carlini - Re: Call for compiler help/advice: atomic builtins for v3
* From: Mark Mitchell - Re: Call for compiler help/advice: atomic builtins for v3
* From: Richard Henderson - Re: Call for compiler help/advice: atomic builtins for v3
* From: Mark Mitchell - Re: Call for compiler help/advice: atomic builtins for v3
* From: Paolo Carlini
- Call for compiler help/advice: atomic builtins for v3
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |