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

gh-125703: Correctly honour tracemalloc hooks on more PyDECREF specialized paths #125712

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

pablogsal
Copy link
Member

@pablogsal pablogsal commented Oct 18, 2024

@pablogsal
Copy link
Member Author

@markshannon please review this PR. I will not land it until you review it as I don't want to add more fixes like this until we agree on how to fix this problem

If you don't like this approach please tell me what approach you will like.

@markshannon
Copy link
Member

Since #125704 has already been merged, we may as well merge this for consistency.

I'll make a new issue listing the problems with tracemalloc and the later addition of PyRefTracer_SetTracer causes.
We can discuss solutions there, rather than have them scattered across various issues.

Why the changes to the JIT code? They seem unrelated

@pablogsal
Copy link
Member Author

Why the changes to the JIT code? They seem unrelated

That is unrelated indeed. It got incorrectly mixed, will remove 👍

Tools/jit/_stencils.py Outdated Show resolved Hide resolved
@pablogsal pablogsal force-pushed the gh-125703-2 branch 2 times, most recently from 9f3e194 to 1e098e9 Compare October 21, 2024 11:23
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM

@pablogsal
Copy link
Member Author

I will wait for @markshannon to approve

@pablogsal
Copy link
Member Author

Landing this per #125703 (comment)

@pablogsal pablogsal merged commit 3d1df3d into python:main Oct 21, 2024
39 checks passed
@pablogsal pablogsal deleted the gh-125703-2 branch October 21, 2024 14:39
@miss-islington-app
Copy link

Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@pablogsal pablogsal added needs backport to 3.13 bugs and security fixes and removed needs backport to 3.13 bugs and security fixes labels Oct 21, 2024
@miss-islington-app
Copy link

Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@bedevere-app
Copy link

bedevere-app bot commented Oct 21, 2024

GH-125791 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Oct 21, 2024
pablogsal added a commit to pablogsal/cpython that referenced this pull request Oct 21, 2024
…DECREF specialized paths (pythonGH-125712)

(cherry picked from commit 3d1df3d)

Co-authored-by: Pablo Galindo Salgado <[email protected]>
pablogsal added a commit that referenced this pull request Oct 28, 2024
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