-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Share pthread_setname via minipal #108370
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
Conversation
114d062 to
9f59c12
Compare
|
Should this be moved to minipal? |
|
Yes, it does seem like a good candidate for minipal. 😃 |
6621b1f to
cfd1ae2
Compare
125dfc5 to
1c276fa
Compare
1c276fa to
c5927f3
Compare
|
cc @jkoritzinsky, a heads-up for potential conflict with your PR. 🙈 |
| * | ||
| * @return A pointer to a null-terminated string containing the executable path, | ||
| * or NULL if an error occurs. | ||
| */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aligned the documentation with utf8.h.
b632b63 to
b6000f4
Compare
3a2e647 to
c185356
Compare
5fe836b to
2f6239f
Compare
41e7fa0 to
e1a0f74
Compare
e1a0f74 to
7096c63
Compare
ba361e1 to
247d3cb
Compare
jkotas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
|
|
||
| if (error != 0) | ||
| PAL_ERROR palError = InternalGetThreadDataFromHandle(pThread, hThread, &pTargetThread, &pobjThread); | ||
| if (palError != NO_ERROR) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@am11 I have just discovered that you have reversed this condition by accident. So we effectively never set the name. And if the InternalGetThreadDataFromHandle fails, the code crashes because the pTargetThread is null (I've just investigated such crash and found this to be the culprit)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ops, this was an accident. Thanks for catching this. I will make a fix.
Aligned coreclr, nativeaot, mono and libs.