The GetThread() function is very small and is used extensively on start up (approximately 7400 calls).
|
EXTERN_C inline Thread* STDCALL GetThread() |
|
{ |
|
return gCurrentThreadInfo.m_pThread; |
|
} |
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