gh-127599: Fix _Py_RefcntAdd missing calls to _Py_INCREF_STAT_INC/_Py_INCREF_IMMORTAL_STAT_INC#127717
Conversation
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
9b33a69 to
5796061
Compare
Misc/NEWS.d/next/Core_and_Builtins/2024-12-07-13-06-09.gh-issue-127599.tXCZb_.rst
Outdated
Show resolved
Hide resolved
5796061 to
9f1352f
Compare
Misc/NEWS.d/next/Core_and_Builtins/2024-12-07-13-06-09.gh-issue-127599.tXCZb_.rst
Show resolved
Hide resolved
9f1352f to
67f9b4f
Compare
|
@Eclips4 Looks like this is ready to merge - thank you both! |
|
Thanks @EdNutting for the PR, and @Eclips4 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…NC/_Py_INCREF_IMMORTAL_STAT_INC (pythonGH-127717) Previously, `_Py_RefcntAdd` hasn't called `_Py_INCREF_STAT_INC/_Py_INCREF_IMMORTAL_STAT_INC` which is incorrect. Now it has been fixed. (cherry picked from commit ab05beb) Co-authored-by: Ed Nutting <github@ednutting.com>
|
Sorry, @EdNutting and @Eclips4, I could not cleanly backport this to |
|
GH-127963 is a backport of this pull request to the 3.13 branch. |
|
3.12 does not have a |
|
Ah, unfortunately, the same applies to branch 3.13. Though we can omit the use of _ |
|
If the backports are not hard to do, let's backport it. I see it as a bug fix personally. But if the backports are really hard to do and prone to introducing bugs, then let's not do it and treat it as a feature. |
|
My view is this is a bug fix not a feature. I don't hold a strong view on whether that means it should be backported or not. Given that metrics are the core of performance analysis, anyone attempting to analyse 3.12/3.13 in their deployments might end up slightly off the mark without this fix. My team and I are working with 3.12 internally, so I'll end up developing an internal patch over the New Year anyway. I'll see how much work it is to turn that into a proper backport patch for 3.12/3.13 and let you know. |
|
Thank you both for sharing your thoughts. |
…NC/_Py_INCREF_IMMORTAL_STAT_INC (python#127717) Previously, `_Py_RefcntAdd` hasn't called `_Py_INCREF_STAT_INC/_Py_INCREF_IMMORTAL_STAT_INC` which is incorrect. Now it has been fixed.
…_STAT_INC/_Py_INCREF_IMMORTAL_STAT_INC (pythonGH-127717) Previously, `_Py_RefcntAdd` hasn't called `_Py_INCREF_STAT_INC/_Py_INCREF_IMMORTAL_STAT_INC` which is incorrect. Now it has been fixed. (cherry picked from commit ab05beb) Co-authored-by: Ed Nutting <github@ednutting.com>
…_STAT_INC/_Py_INCREF_IMMORTAL_STAT_INC (pythonGH-127717) Previously, `_Py_RefcntAdd` hasn't called `_Py_INCREF_STAT_INC/_Py_INCREF_IMMORTAL_STAT_INC` which is incorrect. Now it has been fixed. (cherry picked from commit ab05beb) Co-authored-by: Ed Nutting <github@ednutting.com>
|
GH-128712 is a backport of this pull request to the 3.12 branch. |
…_STAT_INC/_Py_INCREF_IMMORTAL_STAT_INC (pythonGH-127717) Previously, `_Py_RefcntAdd` hasn't called `_Py_INCREF_STAT_INC/_Py_INCREF_IMMORTAL_STAT_INC` which is incorrect. Now it has been fixed. (cherry picked from commit ab05beb) Co-authored-by: Ed Nutting <github@ednutting.com>
|
GH-128713 is a backport of this pull request to the 3.13 branch. |
Fixes #127599 -
_Py_RefcntAdddoesn't increment ref count stats_Py_RefcntAdddoesn't increment ref count stats #127599