Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-91048: fix thread safety for asyncio stack introspection APIs#129399
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Merging this as its been sitting idle for over a week now. |
75c5519
intopython:mainUh oh!
There was an error while loading.Please reload this page.
if (TaskOrFuture_Check(state, fut) && TaskOrFuture_Check(state, waiter)) { | ||
int res; | ||
Py_BEGIN_CRITICAL_SECTION(fut); | ||
res = future_awaited_by_add(state, (FutureObj *)fut, waiter); |
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.
Sorry, this should have beenfuture_awaited_by_discard
, fixing#129731.
I'm surprised that no tests failed, seems like test coverage is less for these functions...
Uh oh!
There was an error while loading.Please reload this page.
Changes:
FutureObj *
as all the other ones already do. In most cases, we avoid type checking on task which is guaranteed to be task or its subclass.