Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid heap allocation when truncating thread names #105239

Merged
merged 1 commit into from
Dec 10, 2022

Commits on Dec 7, 2022

  1. Avoid heap allocation when truncating thread names

    Ensure that heap allocation does not occur in a thread until std::thread
    is ready. This fixes issues with custom allocators that call
    std::thread::current(), since doing so prematurely initializes
    THREAD_INFO and causes the following thread_info::set() to fail.
    gh2o committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    3c55af5 View commit details
    Browse the repository at this point in the history