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

[mypyc] Fix incref/decref on free-threaded builds#19127

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

Merged
JukkaL merged 1 commit intomasterfromfree-thread-inc-dec-ref
May 27, 2025

Conversation

@JukkaL
Copy link
Collaborator

Fix C compile errors on free-threaded builds. We can't (easily) access the reference count value directly, so always use the C API functions when on a free-threaded build.

Work onmypyc/mypyc#1038.

Fix C compile errors on free-threaded builds. We can't (easily) accessthe reference count value directly, so always use the C API functionswhen on a free-threaded build.

#ifndefPy_GIL_DISABLED

// The *_NO_IMM operations below perform refcount manipulation for
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you adjust this comment to mention something like "this optimization cannot be performed with free threaded mode so we fallback to just calling the normal decref.

@JukkaLJukkaL merged commit750a579 intomasterMay 27, 2025
12 checks passed
@JukkaLJukkaL deleted the free-thread-inc-dec-ref branchMay 27, 2025 16:36
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@jhancejhancejhance approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@JukkaL@jhance

[8]ページ先頭

©2009-2025 Movatter.jp