-
-
Notifications
You must be signed in to change notification settings - Fork 33k
gh-133171: Re-enable JUMP_BACKWARD to free-threading build #137800
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
Changes from all commits
d470ce9
cfcd9fe
644b306
79d9226
2aa295a
fc2a93b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -464,6 +464,12 @@ PyStackRef_CLOSE_SPECIALIZED(_PyStackRef ref, destructor destruct) | |
PyStackRef_CLOSE(ref); | ||
} | ||
|
||
static inline int | ||
PyStackRef_RefcountOnObject(_PyStackRef ref) | ||
{ | ||
return (ref.bits & Py_TAG_REFCNT) == 0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this implementation is fine, but I'm not 100% sure |
||
} | ||
|
||
static inline _PyStackRef | ||
PyStackRef_DUP(_PyStackRef stackref) | ||
{ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Just personal interest, correct me if I'm wrong.
It seems we don;t call this function yet right? Is this prepared for a future hook?
This function seems be trigger at
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.
Yeah correct, but we can't build if this function is not added. That's all at this moment.