-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Notify the debugger of a cross-thread dependency in Lock #101501
Conversation
When a FuncEval tries to acquire a Lock that is held by a different thread, notify the debugger of a cross-thread dependency.
Tagging subscribers to this area: @mangod9 |
CC @tommcdon. I tried testing this locally and wasn't seeing an early abort, may be due to a different issue. Anyway based on the intent I believe this should enable an early abort. |
With a small change to testing, I was able to verify that this works to enable quick-abort of a FuncEval when it attempts to acquire a contented lock. Thanks @tommcdon! |
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.
LGTM, thanks!
* Notify the debugger of a cross-thread dependency in Lock When a FuncEval tries to acquire a Lock that is held by a different thread, notify the debugger of a cross-thread dependency.
* Notify the debugger of a cross-thread dependency in Lock When a FuncEval tries to acquire a Lock that is held by a different thread, notify the debugger of a cross-thread dependency.
When a FuncEval tries to acquire a Lock that is held by a different thread, notify the debugger of a cross-thread dependency.