mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 05:26:23 +03:00
46a4ec3a71
Add an implementation of thread local storage. This uses a container that is pointed to by the otherwise-unsed `$tp` register. This container is allocated on-demand, so threads that use no TLS will not allocate this extra memory. Signed-off-by: Sean Cross <sean@xobs.io>