Skip to content

Commit

Permalink
Fixup comment
Browse files Browse the repository at this point in the history
  • Loading branch information
markshannon committed Oct 10, 2024
1 parent 9f86e46 commit 9c76c52
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Include/refcount.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ cleanup during runtime finalization.
In 64+ bit systems, any object whose 32 bit reference count is >= 2**31
will be treated as immortal.
In order to offer some resilience to C extensions using the stable ABI
compiled against 3.11 or earlier, we set the initial value near the
middle of the range (2**31, 2**32 - 2**29). That way the
will be marked as immortal by setting all of the
lower 32 bits of the reference count field, which is equal to: 0xFFFFFFFF
Using the lower 32 bits makes the value backwards compatible by allowing
C-Extensions without the updated checks in Py_INCREF and Py_DECREF to safely
increase and decrease the objects reference count.
Expand Down

0 comments on commit 9c76c52

Please sign in to comment.