Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions