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 Michael.Felt
Recipients BTaskaya, David.Edelsohn, Michael.Felt, pablogsal, vstinner
Date 2020-04-22.11:45:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <a1d1d3b7-4c92-7b48-4d01-8967961d9229@felt.demon.nl>
In-reply-to <1587277253.97.0.170354741842.issue40244@roundup.psfhosted.org>
Content
When I have more time I hope to investigate specifically what is
different in the assembly code - with/without the __noreturn__ change.

On 19/04/2020 08:20, Batuhan Taskaya wrote:
> Batuhan Taskaya <batuhanosmantaskaya@gmail.com> added the comment:
>
> Moving assertion from _PyObject_GC_TRACK to gen_dealloc (just before the _PyObject_GC_TRACK call) results with success (????)
>
>      if (gen->gi_weakreflist != NULL)
>          PyObject_ClearWeakRefs(self);
> -
> +    _PyObject_ASSERT_FROM(self, !_PyObject_GC_IS_TRACKED(self),
> +                          "object already tracked by they garbage collector",
> +                          __FILE__, __LINE__, "_PyObject_GC_TRACK");
>      _PyObject_GC_TRACK(self);
>  
>      if (PyObject_CallFinalizerFromDealloc(self))
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue40244>
> _______________________________________
>
History
Date User Action Args
2020-04-22 11:45:09Michael.Feltsetrecipients: + Michael.Felt, vstinner, David.Edelsohn, pablogsal, BTaskaya
2020-04-22 11:45:08Michael.Feltlinkissue40244 messages
2020-04-22 11:45:08Michael.Feltcreate