Skip to content

Commit dbd944e

Browse files
naschemesergey-miryanov
authored andcommitted
Remove vestigial comment about "old space bit'.
1 parent bfc44ab commit dbd944e

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Include/internal/pycore_gc.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -118,20 +118,6 @@ static inline void _PyObject_GC_SET_SHARED(PyObject *op) {
118118
/* Bit 1 is set when the object is in generation which is GCed currently. */
119119
#define _PyGC_PREV_MASK_COLLECTING ((uintptr_t)2)
120120

121-
/* Bit 0 in _gc_next is the old space bit.
122-
* It is set as follows:
123-
* Young: gcstate->visited_space
124-
* old[0]: 0
125-
* old[1]: 1
126-
* permanent: 0
127-
*
128-
* During a collection all objects handled should have the bit set to
129-
* gcstate->visited_space, as objects are moved from the young gen
130-
* and the increment into old[gcstate->visited_space].
131-
* When object are moved from the pending space, old[gcstate->visited_space^1]
132-
* into the increment, the old space bit is flipped.
133-
*/
134-
135121
#define _PyGC_PREV_SHIFT 2
136122
#define _PyGC_PREV_MASK (((uintptr_t) -1) << _PyGC_PREV_SHIFT)
137123

0 commit comments

Comments
 (0)