Content-Length: 316729 | pFad | https://github.com/python/cpython/pull/109586

69 [3.12] gh-76785: Use Pending Calls When Releasing Cross-Interpreter Data (gh-109556) by miss-islington · Pull Request #109586 · python/cpython · GitHub
Skip to content
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

[3.12] gh-76785: Use Pending Calls When Releasing Cross-Interpreter Data (gh-109556) #109586

Closed

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Sep 19, 2023

This fixes some crashes in the _xxinterpchannels module, due to a race between interpreters.
(cherry picked from commit fd7e08a)

Co-authored-by: Eric Snow ericsnowcurrently@gmail.com

…ta (pythongh-109556)

This fixes some crashes in the _xxinterpchannels module, due to a race between interpreters.
(cherry picked from commit fd7e08a)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
@ericsnowcurrently
Copy link
Member

Backporting this to 3.12 will have to be done in a way that does not introduce the new _PyCrossInterpreterData_ReleaseAndRawFree() into the public ABI.

@ericsnowcurrently ericsnowcurrently marked this pull request as ready for review October 11, 2023 13:59
@@ -13,6 +13,8 @@ extern "C" {
#include "pycore_gil.h" // struct _gil_runtime_state


typedef int (*_Py_pending_call_func)(void *);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this refactoring should be done in 3.12.1. Is there a reason not to leave it just 'int (*func)(void *)' in a few places?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, _Py_pending_call_func() is not necessary. I'm fine with dropping it.

@ericsnowcurrently
Copy link
Member

I didn't figure out how to modify the miss-islington branch so I've created a new PR: gh-112288.

@ericsnowcurrently
Copy link
Member

I've merged this change through gh-112288.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/pull/109586

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy