On Fri, 11 Mar 2022 09:33:40 GMT, Andrew Haley <a...@openjdk.org> wrote:

> But we don't need to speculate. If thread-local variables are cheap on MacOS, 
> and there is no reason why they should be expensive, then we can stop 
> worrying and just use a thread-local variable for WX state. We can measure 
> how long it takes, and we only have to care about one platform, MacOS/AArch64.

According to 
https://forums.swift.org/t/concurrencys-use-of-thread-local-variables/48654: 
"these accesses are just a move from a system register plus a load/store at a 
constant offset."

-------------

PR: https://git.openjdk.java.net/jdk/pull/7727

Reply via email to