Skip to content

Consider DisableThreadLibraryCalls for STL dll and its satellites #1085

@AlexGuteniev

Description

@AlexGuteniev

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.

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