-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-44991: Make GIL handling more explicit in sqlite3
callbacks
#27934
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
bpo-44991: Make GIL handling more explicit in sqlite3
callbacks
#27934
Conversation
Exception: in the trace callback, do a sanity check before attempting to hold the GIL.
FYI, I'll normalise the callback names in a separate PR. |
|
- since _destructor is a callback, wrap it in GIL lock/unlock - remove GIL lock/unlock from create_callback_context()
Yes, that's cleaner. Thanks! See d42eb38. PTAL :) |
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.
Looks good, thank you!
Thanks, and thank you for reviewing! |
@erlend-aasland: Status check is done, and it's a failure ❌ . |
@erlend-aasland: Status check is done, and it's a success ✅ . |
[1] The trace callback performs a sanity check before acquiring the GIL
https://bugs.python.org/issue44991
Automerge-Triggered-By: GH:encukou