Re: libstdc++ / mt_allocator.cc when using gthreads

2012-04-20 Thread Laurent Alfonsi
Thanks very much Paolo. I'll apply this patch on my side for a while. I ll tell you if i see anything strange. Regards, Laurent On 04/19/12 17:52, Paolo Carlini wrote: On 04/19/2012 05:02 PM, Laurent Alfonsi wrote: Well, I don't know mt_allocator enough to know if this is a fix for real or a

libstdc++ / mt_allocator.cc when using gthreads

2012-04-19 Thread Laurent Alfonsi
All, The enclosed testcases (very close to ext/mt_allocator/deallocate_global_thread-1.cc) exposes a pattern where the following sequence is called (when __gthread_active_p is enabled) : __gthread_key_create(key,::_M_destroy_thread_key); __gthread_setspecific(key, (void*)_M_id);

Re: libstdc++ / mt_allocator.cc when using gthreads

2012-04-19 Thread Paolo Carlini
Hi, All, The enclosed testcases (very close to ext/mt_allocator/deallocate_global_thread-1.cc) exposes a pattern where the following sequence is called (when __gthread_active_p is enabled) : __gthread_key_create(key,::_M_destroy_thread_key); __gthread_setspecific(key,

Re: libstdc++ / mt_allocator.cc when using gthreads

2012-04-19 Thread Laurent Alfonsi
Well, I don't know mt_allocator enough to know if this is a fix for real or a quick fix. Regards, Laurent On 04/19/12 16:26, Paolo Carlini wrote: Hi, All, The enclosed testcases (very close to ext/mt_allocator/deallocate_global_thread-1.cc) exposes a pattern where the following sequence

Re: libstdc++ / mt_allocator.cc when using gthreads

2012-04-19 Thread Paolo Carlini
On 04/19/2012 05:02 PM, Laurent Alfonsi wrote: Well, I don't know mt_allocator enough to know if this is a fix for real or a quick fix. I'm pretty sure we could do better. Whether in practice we are going to do better, any time soon, it's another matter ;) Paolo.