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

> Under which condition can such list be corrupted?

If someone is adding/modifiying the gc and calls any of the functions that set 
the gc flags like (PREV_MASK_COLLECTING).

One example is that after calling move_unreachable(), the unreachable set has 
NEXT_MASK_UNREACHABLE and therefore is an invalid list (until 
move_legacy_finalizers removes the flag and makes it valid again). If you mess 
the order or violate any of the contract, the lists will be invalid. It helps a 
lot to know that you are not leaving the lists in invalid state by mistake or 
on the other hand, to check that they are valid when they are supposed to be 
valid.

----------

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

Reply via email to