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: Prevent print panics when using TLS #29491

Merged
merged 1 commit into from Nov 6, 2015

Commits on Oct 31, 2015

  1. std: Prevent print panics when using TLS

    Currently if a print happens while a thread is being torn down it may cause a
    panic if the LOCAL_STDOUT TLS slot has been destroyed by that point. This adds a
    guard to check and prints to the process stdout if that's the case (as we do for
    if the slot is already borrowed).
    
    Closes rust-lang#29488
    alexcrichton committed Oct 31, 2015
    Copy the full SHA
    8588654 View commit details
    Browse the repository at this point in the history