[cpp-threads] Issue 1369 --- thread safety of std::rethrow_exception

Anthony Williams anthony at justsoftwaresolutions.co.uk
Tue Nov 16 16:40:27 GMT 2010


On 16/11/10 14:33, Howard Hinnant wrote:
> On Nov 16, 2010, at 3:00 AM, Anthony Williams wrote:
>
>> In order to clone exceptions you need two things: the size of the
>> object to clone (so you can allocate space for the new one), and
>> the ability to call the copy constructor so you can actually do the
>> copy.
>>
>> I've looked at the Itanium ABI at
>> http://www.codesourcery.com/public/cxx-abi/abi.html to try and see
>> where this could be done.

[snip suggestions]

>> What do you think?
>
> I've only skimmed your suggestion and not studied it in detail, but
> it seems plausible.  And requiring a recompile of the "throwing code"
> for rethrow_exception to function correctly would be acceptable.

Great.

> But now comes the hard part.  Getting it implemented and signed-off
> by http://www.codesourcery.com/public/cxx-abi/abi.html.  They worry
> about ABI compatibility too and have more expertise in this area than
> I do.

I'll post there and see what people think.

Anthony
-- 
Author of C++ Concurrency in Action     http://www.stdthread.co.uk/book/
just::thread C++0x thread library             http://www.stdthread.co.uk
Just Software Solutions Ltd       http://www.justsoftwaresolutions.co.uk
15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976



More information about the cpp-threads mailing list