------- Comment #5 from fgiasson1 at yahoo dot ca  2009-03-05 19:37 -------
Yes but this static __thread variable must be freed somehow when the thread
exits.

static __thread variables instantiated elsewhere but in exceptions do not cause
leaks. However, when allocated in the exception handling mechanims, it leaks.

glibc has nothing to do with exceptions... I believe that it is worth it to
look at the static __thread freeing mechanism and see if it covers exceptions
[can you point me this code?]. There were no static __thread variables in the
exception mechanism in 6.0.3, but now in 6.0.10 there are. If it is not in
libstdc++, maybe it is a bug in the compiler?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39366

Reply via email to