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?)
I posted some comments about TLS on issue 388 about threading.
There are two important differences between Linux and Windows here.
https://github.com/bjorn3/rustc_codegen_cranelift/issues/388#issuecomment-588699409
And we need to be compatible with the platform convention on both platforms and on both architectures.
Last updated: Nov 22 2024 at 16:03 UTC