diff options
| author | joboet <jonasboettiger@icloud.com> | 2024-08-04 10:32:57 +0200 |
|---|---|---|
| committer | joboet <jonasboettiger@icloud.com> | 2024-08-12 10:08:56 +0200 |
| commit | 8542cd67f0581dbace80f451a90caf9257802cb1 (patch) | |
| tree | 1eb52dcf7fc15de196e8b60181430873bdfeefd2 /compiler/rustc_codegen_llvm/src | |
| parent | b389b0ab72cb0aa9acf4df0ae0c0e12090782da9 (diff) | |
| download | rust-8542cd67f0581dbace80f451a90caf9257802cb1.tar.gz rust-8542cd67f0581dbace80f451a90caf9257802cb1.zip | |
std: do not overwrite style in `get_backtrace_style`
If another thread calls `set_backtrace_style` while a `get_backtrace_style` is reading the environment variables, `get_backtrace_style` will overwrite the value. Use an atomic CAS to avoid this.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
