Skip to content

NativeAOT Thread Name#107943

Merged
jkotas merged 3 commits intodotnet:mainfrom
cshung:public/set-thread-name
Sep 29, 2024
Merged

NativeAOT Thread Name#107943
jkotas merged 3 commits intodotnet:mainfrom
cshung:public/set-thread-name

Conversation

@cshung
Copy link
Contributor

@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
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
Contributor 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.

@cshung cshung force-pushed the public/set-thread-name branch from 790b9d9 to 1b85298 Compare September 29, 2024 12:58
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
@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>
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants