diff options
| author | bors <bors@rust-lang.org> | 2022-06-04 20:27:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-06-04 20:27:53 +0000 |
| commit | 4e725bad73747a4c93a3ac53106e4b4006edc665 (patch) | |
| tree | 7d11e5ed27f3d5baa63894bca6600a0b0e0c2a97 /src/librustdoc/html/static/js/source-script.js | |
| parent | 3a8e71385940c2f02ec4b23876c0a36fd09bdefe (diff) | |
| parent | cb87ce22857bef0cf57a919d4c415211f0b1ab1d (diff) | |
| download | rust-4e725bad73747a4c93a3ac53106e4b4006edc665.tar.gz rust-4e725bad73747a4c93a3ac53106e4b4006edc665.zip | |
Auto merge of #97191 - wesleywiser:main_thread_name, r=ChrisDenton
Call the OS function to set the main thread's name on program init Normally, `Thread::spawn` takes care of setting the thread's name, if one was provided, but since the main thread wasn't created by calling `Thread::spawn`, we need to call that function in `std::rt::init`. This is mainly useful for system tools like debuggers and profilers which might show the thread name to a user. Prior to these changes, gdb and WinDbg would show all thread names except the main thread's name to a user. I've validated that this patch resolves the issue for both debuggers.
Diffstat (limited to 'src/librustdoc/html/static/js/source-script.js')
0 files changed, 0 insertions, 0 deletions
