Skip to content

Commit 2ec5002

Browse files
committed
Update garbage_collector.rst
1 parent 111b2bb commit 2ec5002

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

garbage_collector.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,9 @@ The CPython GC makes use of two fat pointers:
403403
``PREV_MASK_COLLECTING`` and ``_PyGC_PREV_MASK_FINALIZED``. Between collections,
404404
the only flag that can be present is ``_PyGC_PREV_MASK_FINALIZED`` that indicates
405405
if an object has been already finalized. During collections ``_gc_prev`` is
406-
temporarily used for storing the temporarily copy of the reference count (``gc_refs``),
407-
and the GC linked list becomes a singly linked list until ``_gc_prev`` is restored.
406+
temporarily used for storing a copy of the reference count (``gc_refs``), in
407+
addition to two flags, and the GC linked list becomes a singly linked list until
408+
``_gc_prev`` is restored.
408409

409410
* The ``_gc_next`` field is used as the "next" pointer to maintain the doubly linked
410411
list but during collection its lowest bit is used to keep the

0 commit comments

Comments
 (0)