about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-10-31 09:41:21 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-10-31 09:41:21 -0700
commit858865478358c627f0485f3aef17ffb8bcfee612 (patch)
tree4669291950a1dfd73e2025557125fce4f6c1f73f /src/rustllvm/RustWrapper.cpp
parent1a2eaffb63aefba666f55abd992c5e2900654f06 (diff)
downloadrust-858865478358c627f0485f3aef17ffb8bcfee612.tar.gz
rust-858865478358c627f0485f3aef17ffb8bcfee612.zip
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 #29488
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions