]> git.lizzy.rs Git - rust.git/commit
std: Leak all statically allocated TLS keys
authorAlex Crichton <alex@alexcrichton.com>
Mon, 24 Nov 2014 23:24:29 +0000 (15:24 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 24 Nov 2014 23:24:29 +0000 (15:24 -0800)
commita4b1ac5447c44b5ad5923653ed2091e0510ac8db
treeb7a1d16c464a89ea286c21741a2b345a471214fe
parent54c628cb849ad53b66f0d738dc8c83529a9d08d2
std: Leak all statically allocated TLS keys

It turns out that rustrt::at_exit() doesn't actually occur after all pthread
threads have exited (nor does atexit()), so there's not actually a known point
at which we can deallocate these keys. It's not super critical that we do so,
however, because we're about to exit anyway!

Closes #19280
src/libstd/sys/common/thread_local.rs