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

std: Attempt again to inline thread-local-init across crates #84876

Merged

Commits on May 18, 2021

  1. std: Attempt again to inline thread-local-init across crates

    Issue rust-lang#25088 has been part of `thread_local!` for quite some time now.
    Historical attempts have been made to add `#[inline]` to `__getit`
    in rust-lang#43931, rust-lang#50252, and rust-lang#59720, but these attempts ended up not landing
    at the time due to segfaults on Windows.
    
    In the interim though with `const`-initialized thread locals AFAIK this
    is the only remaining bug which is why you might want to use
    `#[thread_local]` over `thread_local!`. As a result I figured it was
    time to resubmit this and see how it fares on CI and if I can help
    debugging any issues that crop up.
    
    Closes rust-lang#25088
    alexcrichton committed May 18, 2021
    Configuration menu
    Copy the full SHA
    641d3b0 View commit details
    Browse the repository at this point in the history