Repository navigation
Fix TLS on wasi, again again - #166367
Fix TLS on wasi, again again#166367maxdexh wants to merge 1 commit into
Conversation
f773045 to
1a04589
Compare
This comment has been minimized.
This comment has been minimized.
8124dfc to
148a349
Compare
148a349 to
3d000b7
Compare
|
I don't think that this is correct, the intention is that wasip1/wasip2/wasip3 all use the same code for TLS, there's nothing special amongst them. Ideally wasip1-threads would too, but I'm not a maintainer for that target so I'm not going to proactively try to unify it. In the linked issue bjorn3 is correct, the |
My intention when I wrote #163809 was just to fix the regression, without adding any new ones; apparently we had different intentions then ^^
Alright, should we close the issue as intended breakage then? |
|
Personally, yeah, I think it'd be reasonable to close |
Wouldn't plain statics be more efficient on the targets where there are guaranteed to not be threads? But indeed this PR shouldn't be necessary for correctness with the target modifier in place. |
|
On wasip1/wasip2 LLVM should already handle that, effectively lowering |
Fixes #166314
This effectively reverts the cfg changes from #163809.
Instead, the issue originally fixed by that PR (#163748) is fixed as originally suggested: By adding back the carve-out for wasip1-threads that was originally removed by accident in the #159733+#160868 combo.
The diff vs the state after #160868 is this change to the guard and key cfgs, respectively:
r? @alexcrichton