You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
)
GetThread() is no longer getting in latest MSVC and includes unnecessary call
to __dyn_tls_on_demand_init. Removing the extern "C" and applying a __declspec(selectany)
makes the compiler to generate same code as before.
Fixes for #33341
The
GetThread()
function is very small and is used extensively on start up (approximately 7400 calls).runtime/src/coreclr/src/vm/threads.inl
Lines 32 to 35 in e9b1dbb
It would be a good exercise to invesgigate why this very small, but commonly called function isn't being inlined.
Discovered during the work to make
NativeCallableAttribute
public./cc @jkotas
The text was updated successfully, but these errors were encountered: