]> granicus.if.org Git - python/commit
Reserved another gc_refs value for untracked objects. Every live gc
authorTim Peters <tim.peters@gmail.com>
Tue, 2 Jul 2002 00:52:30 +0000 (00:52 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 2 Jul 2002 00:52:30 +0000 (00:52 +0000)
commitea405639bff00b4c177026b474a9d75207c0bf1b
tree60c5deaa5a010c28c3784cbf93f9add8af42ad7d
parent7c75bf2090c58ac0d2bb57220c41327285bf7c1a
Reserved another gc_refs value for untracked objects.  Every live gc
object should now have a well-defined gc_refs value, with clear transitions
among gc_refs states.  As a result, none of the visit_XYZ traversal
callbacks need to check IS_TRACKED() anymore, and those tests were removed.
(They were already looking for objects with specific gc_refs states, and
the gc_refs state of an untracked object can no longer match any other
gc_refs state by accident.)
Added more asserts.
I expect that the gc_next == NULL indicator for an untracked object is
now redundant and can also be removed, but I ran out of time for this.
Include/objimpl.h
Modules/gcmodule.c