dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.65k stars 4.57k forks source link

Loongarch/riscV: ThreadLocal optimization during JIT should detect static/dynamic resolver #104518

Open kunalspathak opened 2 weeks ago

kunalspathak commented 2 weeks ago

The JIT code today assume that static resolver will give us a small offset that we embed in JIT. However, with dynamic resolver, the offset returned can that be of current thread, and embedding it in JIT code might be problematic. We are addressing the problem for arm64 in https://github.com/dotnet/runtime/pull/104408, but might have to do similar thing (after validation) for loongarch/riscv

dotnet-policy-service[bot] commented 2 weeks ago

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch See info in area-owners.md if you want to be subscribed.

jkotas commented 2 weeks ago

cc @shushanhf @dotnet/samsung