This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients christian.heimes, gvanrossum, kumaraditya, miss-islington, sobolevn, vstinner
Date 2022-02-23.20:33:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645648382.61.0.882189137185.issue46430@roundup.psfhosted.org>
In-reply-to
Content
I tried to hack _PyStaticCode_Dealloc() to free strings, but since immortal objects are half-baken today, calling Py_DECREF() does crash.

Py_SETREF() should increase _Py_RefTotal if the old object is immortal and he new object is not.

Maybe this change should be reverted until Eric's PEP 683 "Immortal Objects, Using a Fixed Refcount" is implemented.
History
Date User Action Args
2022-02-23 20:33:02vstinnersetrecipients: + vstinner, gvanrossum, christian.heimes, miss-islington, sobolevn, kumaraditya
2022-02-23 20:33:02vstinnersetmessageid: <1645648382.61.0.882189137185.issue46430@roundup.psfhosted.org>
2022-02-23 20:33:02vstinnerlinkissue46430 messages
2022-02-23 20:33:02vstinnercreate