Alex Crichton ed86b48cc9 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.
2013-11-26 21:11:17 -08:00
..
2013-11-26 08:25:27 -08:00
2013-11-26 08:25:27 -08:00
2013-11-26 08:25:27 -08:00
2013-11-26 11:04:39 -08:00
2013-11-11 21:53:14 +09:00
2013-11-14 22:20:12 -05:00
2013-11-26 08:25:27 -08:00
2013-11-26 15:19:41 -08:00
2013-11-24 21:22:19 -08:00
2013-11-26 08:25:27 -08:00
2013-11-13 11:36:13 -08:00
2013-11-26 11:04:39 -08:00
2013-11-26 11:04:39 -08:00
2013-11-26 11:04:39 -08:00