[Bug 192320] Use of thread_local produces linking errors on system version of clang++

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Feb 19 08:57:04 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192320

--- Comment #5 from Tijl Coosemans <tijl at FreeBSD.org> ---
(In reply to David Chisnall from comment #4)
That's what glibc seems to do.  When a thread calls dlclose its thread_local
variables are destroyed, but if there are other threads with thread_local
variables the DSO is kept in memory until those variables are destroyed (when
the threads exit or call dlclose).

https://sourceware.org/glibc/wiki/Destructor%20support%20for%20thread_local%20variables

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-toolchain mailing list