mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
gh-111968: Explicit handling for finalized freelist (gh-113929)
This commit is contained in:
parent
53d2e1f26c
commit
efa738e862
2 changed files with 7 additions and 19 deletions
|
@ -132,10 +132,6 @@ PyFloat_FromDouble(double fval)
|
|||
struct _Py_float_state *state = get_float_state();
|
||||
op = state->free_list;
|
||||
if (op != NULL) {
|
||||
#ifdef Py_DEBUG
|
||||
// PyFloat_FromDouble() must not be called after _PyFloat_Fini()
|
||||
assert(state->numfree != -1);
|
||||
#endif
|
||||
state->free_list = (PyFloatObject *) Py_TYPE(op);
|
||||
state->numfree--;
|
||||
OBJECT_STAT_INC(from_freelist);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue