This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Make it possible to annotate the shared pointer operations in the std::thread implementation
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Bart Van Assche <bvanassche at acm dot org>
- Cc: libstdc++ at gcc dot gnu dot org, Konstantin Serebryany <konstantin dot s dot serebryany at gmail dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 24 Dec 2011 11:15:17 +0000
- Subject: Re: [PATCH] Make it possible to annotate the shared pointer operations in the std::thread implementation
- References: <33987586.92vJibue4B@linux> <1459889.aDstdfhJvV@linux> <CAH6eHdRK1Phk+TwwsZa0iT8YqqGSnLNY6r4f4ZB32C8eOs811w@mail.gmail.com>
On 24 December 2011 11:11, Jonathan Wakely wrote:
>
> Apart from that, I prefer to keep the thread-launching logic in the
> library rather than headers, as it allows us to change it more easily
> and for users to benefit just by linking to a newer library rather
> than recompiling. I don't think the data race detection macros are a
> compelling reason to change that.
An example improvement (which I'm working on) is to give better stack
traces when a process is terminated by an uncaught exception in a
function run by std::thread. If that's improved in the library, all
existing code using std::thread would get better stack traces just by
linking to a newer libstdc++.so, rather than having to recompile with
a newer GCC.