This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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 v5] Destructor support for C++11 thread_local variables


On Mon, Feb 18, 2013 at 8:39 AM, Siddhesh Poyarekar <siddhesh@redhat.com> wrote:
> On Fri, Feb 15, 2013 at 01:40:26PM -0500, Carlos O'Donell wrote:
>>
>> OK to checkin once you get the naming straight.
>>
>
> I've checked this in after making the naming changes you suggested.  I
> assume this should have a NEWS update as well; how about this:
>
>   Add support for calling C++11 thread_local object destructors on
>   thread and program exit.  This needs compiler support for offloading
>   C++11 destructor calls to glibc.

Yes, you read my mind, it does need a NEWS entry.

Just so we are on the same page you still have the following to do:

(a) Manual entry under pthread_key_create saying that C++11
thread_local objects are destroyed before keys are and therefore key
destructors must not use thread_local objects.

(b) Update your wiki page of the design to talk about DSO symbol
handle rather than just the DSO handle, and explain that it is a
symbol in the DSO named __dso_handle.

Cheers,
Carlos.


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