diff options
author | Mark Shannon <mark@hotpy.org> | 2024-10-10 17:19:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-10 17:19:08 (GMT) |
commit | c9014374c50d6ef64786d3e7d9c7e99053d5c9e2 (patch) | |
tree | 0aa842abbebaa90dfbafe985f2ab1fb5688ce45f /Python/generated_cases.c.h | |
parent | 01fc3b34cc6994bc83b6540da3a8573e79dfbb56 (diff) | |
download | cpython-c9014374c50d6ef64786d3e7d9c7e99053d5c9e2.zip cpython-c9014374c50d6ef64786d3e7d9c7e99053d5c9e2.tar.gz cpython-c9014374c50d6ef64786d3e7d9c7e99053d5c9e2.tar.bz2 |
GH-125174: Make immortal objects more robust, following design from PEP 683 (GH-125251)
Diffstat (limited to 'Python/generated_cases.c.h')
-rw-r--r-- | Python/generated_cases.c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h index 7656ce6..7023aea 100644 --- a/Python/generated_cases.c.h +++ b/Python/generated_cases.c.h @@ -7840,7 +7840,7 @@ DEOPT_IF(!PyLong_CheckExact(value_o), TO_BOOL); STAT_INC(TO_BOOL, hit); if (_PyLong_IsZero((PyLongObject *)value_o)) { - assert(_Py_IsImmortalLoose(value_o)); + assert(_Py_IsImmortal(value_o)); res = PyStackRef_False; } else { @@ -7902,7 +7902,7 @@ DEOPT_IF(!PyUnicode_CheckExact(value_o), TO_BOOL); STAT_INC(TO_BOOL, hit); if (value_o == &_Py_STR(empty)) { - assert(_Py_IsImmortalLoose(value_o)); + assert(_Py_IsImmortal(value_o)); res = PyStackRef_False; } else { |