mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
GH-127705: Use _PyStackRef
s in the default build. (GH-127875)
This commit is contained in:
parent
7cc99a54b7
commit
2bef8ea8ea
21 changed files with 688 additions and 254 deletions
|
@ -2540,6 +2540,9 @@ _Py_SetImmortalUntracked(PyObject *op)
|
|||
op->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL;
|
||||
op->ob_ref_shared = 0;
|
||||
_Py_atomic_or_uint8(&op->ob_gc_bits, _PyGC_BITS_DEFERRED);
|
||||
#elif SIZEOF_VOID_P > 4
|
||||
op->ob_flags = _Py_IMMORTAL_FLAGS;
|
||||
op->ob_refcnt = _Py_IMMORTAL_INITIAL_REFCNT;
|
||||
#else
|
||||
op->ob_refcnt = _Py_IMMORTAL_INITIAL_REFCNT;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue