diff options
| author | bors <bors@rust-lang.org> | 2023-11-12 15:33:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-12 15:33:24 +0000 |
| commit | eb2c643bf14f800b5c90a96bb11f92380e2979f3 (patch) | |
| tree | 8c3af7641c3ba88ca650b92a021725b128cc8c7e /compiler/rustc_codegen_gcc/example/std_example.rs | |
| parent | e25a04fbe59db12db90e4a63ef9f27c7fa52b3fb (diff) | |
| parent | c226533cbd51c5b8057942695a10f8ebbe484126 (diff) | |
| download | rust-eb2c643bf14f800b5c90a96bb11f92380e2979f3.tar.gz rust-eb2c643bf14f800b5c90a96bb11f92380e2979f3.zip | |
Auto merge of #2931 - max-heller:issue-2881, r=RalfJung
Treat thread-local statics on main thread as static roots for leakage analysis Miri currently treats allocations as leaked if they're only referenced in thread-local statics. For threads other than the main thread, this is correct, since the thread can terminate before the program does, but references in the main thread's locals should be treated as living for the duration of the program since the thread lives for the duration of the program. This PR adds thread-local statics and TLS keys as "static roots" for leakage analysis, but does not yet bless the example program from #2881. See https://github.com/rust-lang/miri/issues/2881#issuecomment-1585666652 Closes #2881
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions
