RFR: 8282475: SafeFetch should not rely on existence of Thread::current [v6]

Florian Weimer fweimer at openjdk.java.net
Fri Mar 11 12:21:45 UTC 2022


On Fri, 11 Mar 2022 09:50:22 GMT, Johannes Bechberger <duke at openjdk.java.net> wrote:

> 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."

Ideally you'd still benchmark that. Some AArch64 implementations have really, really slow moves from the system register used as the thread pointer. Hopefully Apple's implementation isn't in that category.

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

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


More information about the shenandoah-dev mailing list