mirror of
https://github.com/python/cpython.git
synced 2025-10-28 01:00:34 +00:00
If Py_NOGIL is defined and Py_SET_REFCNT() is called with a reference
count larger than UINT32_MAX, make the object immortal.
Set _Py_IMMORTAL_REFCNT constant type to Py_ssize_t to fix the
following compiler warning:
Include/internal/pycore_global_objects_fini_generated.h:14:24:
warning: comparison of integers of different signs: 'Py_ssize_t'
(aka 'long') and 'unsigned int' [-Wsign-compare]
if (Py_REFCNT(obj) < _Py_IMMORTAL_REFCNT) {
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
|
||
|---|---|---|
| .. | ||
| cmdline.rst | ||
| configure.rst | ||
| editors.rst | ||
| index.rst | ||
| mac.rst | ||
| unix.rst | ||
| venv-create.inc | ||
| win_installer.png | ||
| windows.rst | ||