mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
GH-125174: Mark objects as statically allocated. (#127797)
* Set a bit in the unused part of the refcount on 64 bit machines and the free-threaded build. * Use the top of the refcount range on 32 bit machines
This commit is contained in:
parent
dd9da738ad
commit
bc262de06b
7 changed files with 99 additions and 13 deletions
|
@ -2691,7 +2691,7 @@ class ShutdownTest(unittest.TestCase):
|
|||
class ImmortalTests(unittest.TestCase):
|
||||
|
||||
if sys.maxsize < (1 << 32):
|
||||
IMMORTAL_REFCOUNT = 3 << 29
|
||||
IMMORTAL_REFCOUNT = 7 << 28
|
||||
else:
|
||||
IMMORTAL_REFCOUNT = 3 << 30
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue