Skip to content

Commit

Permalink
Fix bug in tuple untrack logic.
Browse files Browse the repository at this point in the history
Need to clear the "alive" bit.
  • Loading branch information
nascheme committed Jan 31, 2025
1 parent 62bace2 commit e12dd2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Python/gc_free_threading.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ gc_mark_traverse_tuple(PyObject *self, void *args)
{
_PyTuple_MaybeUntrack(self);
if (!gc_has_bit(self, _PyGC_BITS_TRACKED)) {
gc_clear_alive(self);
return 0;
}
PyTupleObject *tuple = _PyTuple_CAST(self);
Expand Down

0 comments on commit e12dd2e

Please sign in to comment.