libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libunwind-devel] Updated fast trace patch with initial performance


From: Arun Sharma
Subject: Re: [Libunwind-devel] Updated fast trace patch with initial performance results
Date: Tue, 5 Apr 2011 08:09:55 -0700

On Mon, Apr 4, 2011 at 11:18 PM, Lassi Tuura <address@hidden> wrote:
> Hi,
>
>> Is there a particular reason you didn't use __thread?
>
> Ah forgot one important detail. We do need to arrange a call to 
> trace_cache_free() on thread exit. This is easy with pthread_key_create(), 
> but I understand not so easy for __thread.
>
> Any thoughts how to free per-thread data with __thread? Any tricks to get the 
> destructor call effect without risking the calloc() call?
>

Does pthread_cleanup_push() work?

 -Arun



reply via email to

[Prev in Thread] Current Thread [Next in Thread]