Skip to content

Consider DisableThreadLibraryCalls for STL dll and its satellites #1085

Description

Magic statics are avoided for performance, to make DisableThreadLibraryCalls effective. From #673 (comment):

If the DLL uses TLS (e.g. due to magic statics), this call has no effect, leading to DllMain being called on thread start/end, which increases costs.

But STL DLLs themselves do not call DisableThreadLibraryCalls.
With added sattellites, the impact grows.

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

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions