Stream: cranelift

Topic: threading


view this post on Zulip Andrew Brown (Feb 14 2020 at 18:01):

bjorn3 has a PR up for doing thread-local storage that he needs for supporting threading in his project: https://github.com/bytecodealliance/cranelift/pull/1174. It largely makes sense to me and I was considering approving it but I wanted to make sure that it aligns with everyone else's plans for threading in Cranelift. Can we have that discussion here? Or perhaps one of the Cranelift meetings? (Is there a meeting this Monday?)

This adds TLS (thread local storage) support for ELF targets to Cranelift ASM of the tls_example.clif file has been verifier to match the ASM emitted by LLVM at bjorn3/rustc_codegen_cranelift#388...

view this post on Zulip Josh Triplett (Feb 20 2020 at 07:47):

I posted some comments about TLS on issue 388 about threading.

view this post on Zulip Josh Triplett (Feb 20 2020 at 07:48):

There are two important differences between Linux and Windows here.

view this post on Zulip Josh Triplett (Feb 20 2020 at 07:48):

https://github.com/bjorn3/rustc_codegen_cranelift/issues/388#issuecomment-588699409

Currently atomics are not atomic. Blocked on bytecodealliance/cranelift#582

view this post on Zulip Josh Triplett (Feb 20 2020 at 07:49):

And we need to be compatible with the platform convention on both platforms and on both architectures.


Last updated: Dec 23 2024 at 12:05 UTC