Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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

Conversation

@miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedSep 19, 2023
edited by bedevere-appbot
Loading

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

Co-authored-by: Eric Snowericsnowcurrently@gmail.com

…ta (pythongh-109556)This fixes some crashes in the _xxinterpchannels module, due to a race between interpreters.(cherry picked from commitfd7e08a)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.

@ericsnowcurrentlyericsnowcurrently marked this pull request as ready for reviewOctober 11, 2023 13:59
#include"pycore_gil.h"// struct _gil_runtime_state


typedefint (*_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?

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 throughgh-112288.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ericsnowcurrentlyericsnowcurrentlyericsnowcurrently left review comments

@Yhg1sYhg1sYhg1s approved these changes

Assignees

@Yhg1sYhg1s

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@miss-islington@ericsnowcurrently@Yhg1s

[8]ページ先頭

©2009-2025 Movatter.jp