Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NativeAOT Thread Name #107943

Merged
merged 3 commits into from
Sep 29, 2024
Merged

NativeAOT Thread Name #107943

merged 3 commits into from
Sep 29, 2024

Conversation

cshung
Copy link
Member

@cshung cshung commented Sep 17, 2024

No description provided.

@cshung cshung marked this pull request as ready for review September 25, 2024 02:33
@cshung cshung force-pushed the public/set-thread-name branch 3 times, most recently from 9e3dd91 to 746f9d0 Compare September 27, 2024 19:01
@@ -1512,6 +1528,10 @@ namespace
ThreadStubArguments* args = static_cast<ThreadStubArguments*>(argument);
assert(args != nullptr);

#ifdef __APPLE__
SetThreadName(GetCurrentThread(), args->name);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cshung, I think we can use it on all targets #108370?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cshung, I think we can use it on all targets #108370?

Yes we can, but that would just be extra work since for all other platforms we have already set the name earlier.

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you!

@jkotas jkotas merged commit 2917e51 into dotnet:main Sep 29, 2024
147 of 151 checks passed
@cshung cshung deleted the public/set-thread-name branch September 29, 2024 22:14
sirntar pushed a commit to sirntar/runtime that referenced this pull request Sep 30, 2024
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants