about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-12 15:33:24 +0000
committerbors <bors@rust-lang.org>2023-11-12 15:33:24 +0000
commiteb2c643bf14f800b5c90a96bb11f92380e2979f3 (patch)
tree8c3af7641c3ba88ca650b92a021725b128cc8c7e /tests/rustdoc-js-std/parser-errors.js
parente25a04fbe59db12db90e4a63ef9f27c7fa52b3fb (diff)
parentc226533cbd51c5b8057942695a10f8ebbe484126 (diff)
downloadrust-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 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions