Skip to content

The GetThread() function isn't being inlined on Win-x64 Release. #33341

@AaronRobinsonMSFT

Description

@AaronRobinsonMSFT

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions