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 vstinner
Date 2021-06-29.02:22:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1624933325.44.0.428481212705.issue44531@roundup.psfhosted.org>
In-reply-to
Content
In bpo-40142, I tried to modify _PyObject_GC_TRACK() to visit the object before tracking it, as done by PyObject_GC_Track().

Problem: PyType_GenericAlloc() cannot traverse the object since the object members are not initialized yet. For example, dict_traverse() can only be called at dict_new() exit.

Here I propose a different approach. First, fix built-in types to only track instances when they are fully initialized. Avoid PyType_GenericAlloc().
History
Date User Action Args
2021-06-29 02:22:05vstinnersetrecipients: + vstinner
2021-06-29 02:22:05vstinnersetmessageid: <1624933325.44.0.428481212705.issue44531@roundup.psfhosted.org>
2021-06-29 02:22:05vstinnerlinkissue44531 messages
2021-06-29 02:22:05vstinnercreate