On Sun, Mar 9, 2014 at 11:11 AM, Peter Zotov <whitequ...@whitequark.org> wrote:
> 3) When faced with a requirement to look up a thread-local variable,
> LLVM would load address of the thread-local variable block from
> a mutable global "__tls" (instead of FS-based addressing on x86, etc),
> then proceed as usual.

So you're assuming no SMP?  Isn't a more general solution possible?
For example, calling a function to get the address of a particular TLS
variable, which could be implemented in inline assembly and inlined.
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to