about summary refs log tree commit diff
path: root/src/libstd/task
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-11-25 18:27:27 -0800
committerAlex Crichton <alex@alexcrichton.com>2013-11-26 21:11:17 -0800
commited86b48cc9a8349e8e99de5f013f68f1edff4121 (patch)
tree286d4792fffa99a88eeccefde277edf69eaf70ab /src/libstd/task
parent82d9033b67d618d5bc51e9b22190c369214db4b9 (diff)
downloadrust-ed86b48cc9a8349e8e99de5f013f68f1edff4121.tar.gz
rust-ed86b48cc9a8349e8e99de5f013f68f1edff4121.zip
Clean up statically initialized data on shutdown
Whenever the runtime is shut down, add a few hooks to clean up some of the
statically initialized data of the runtime. Note that this is an unsafe
operation because there's no guarantee on behalf of the runtime that there's no
other code running which is using the runtime.

This helps turn down the noise a bit in the valgrind output related to
statically initialized mutexes. It doesn't turn the noise down to 0 because
there are still statically initialized mutexes in dynamic_lib and
os::with_env_lock, but I believe that it would be easy enough to add exceptions
for those cases and I don't think that it's the runtime's job to go and clean up
that data.
Diffstat (limited to 'src/libstd/task')
0 files changed, 0 insertions, 0 deletions