-
Notifications
You must be signed in to change notification settings - Fork 5k
Remove thread pointer from AwareLock #112715
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
Remove thread pointer from AwareLock #112715
Conversation
Tagging subscribers to this area: @mangod9 |
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.
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
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.
Just a minor comment, otherwise LGTM, thanks!
#endif // !DACCESS_COMPILE | ||
|
||
// the DAC needs to have this method available | ||
PTR_Thread AwareLock::GetHoldingThread() |
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.
Nit: Would be good to replace the two remaining references to this function outside of the DAC, from threads.cpp
in stress logs, to report the holding thread ID instead.
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.
Nevermind, these seem to only be under a macro that is not set, and only for diagnostic purposes.
Removing the thread pointer present in AwareLock since now it holds the thread id.
Verified with SOS SyncBlk command and with the VS debugger that the thread pointer still can be retrieved.
Follow-up work of #107168.