diff options
| author | Wesley Wiser <wesleywiser@microsoft.com> | 2022-05-19 17:21:20 -0400 |
|---|---|---|
| committer | Wesley Wiser <wesleywiser@microsoft.com> | 2022-05-27 10:39:54 -0400 |
| commit | 820ffc8d7ad9741a078634a42f14ea373d565467 (patch) | |
| tree | 15296c74ee21f2b411a186b6acff5aa81838668c /src/librustdoc/html/static/js/source-script.js | |
| parent | c0672870491e84362f76ddecd50fa229f9b06dff (diff) | |
| download | rust-820ffc8d7ad9741a078634a42f14ea373d565467.tar.gz rust-820ffc8d7ad9741a078634a42f14ea373d565467.zip | |
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
