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 gvanrossum
Recipients eric.snow, gvanrossum, vstinner
Date 2022-01-21.05:01:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642741286.05.0.466599672026.issue46449@roundup.psfhosted.org>
In-reply-to
Content
Hm, the deep-frozen objects are statically initialized with a very large refcount that isn't accounted for (they are intended to be immortal). It seems that Py_Finalize() somehow decrefs those objects. I guess this means we need some kind of flag indicating certain objects are immortal (Eric has proposed several schemes), then we could just mark these objects as immortal.

This reminds me, since https://github.com/python/cpython/pull/30715 (which I merged yesterday) the deep-frozen objects also reference the small ints directly, as well as the singleton for b"". Is this even safe across Py_Finalize()/Py_Initialize()? If not, we'll need to roll that back as well.
History
Date User Action Args
2022-01-21 05:01:26gvanrossumsetrecipients: + gvanrossum, vstinner, eric.snow
2022-01-21 05:01:26gvanrossumsetmessageid: <1642741286.05.0.466599672026.issue46449@roundup.psfhosted.org>
2022-01-21 05:01:26gvanrossumlinkissue46449 messages
2022-01-21 05:01:25gvanrossumcreate