Pablo Galindo Salgado <pablog...@gmail.com> added the comment:

> But if said objects (isolated and untracked before and now tracked) acquire 
> strong references to immortal objects, those objects will be visited when the 
> gc starts calculating the isolated cycles and that requires a balanced 
> reference count to work.

I was thinking about this a bit more and because the refcount bit is too high, 
the GC algorithm will be "fine" in the sense that won't break. It will just 
treat immortal objects as referenced from outside any cycle isolate (because 
the refcount hopefully will never reach 0), which is consistent with the fact 
that they are in the permanent generation.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40255>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to