8000 enable all freelists again · python/cpython@fce4651 · GitHub
[go: up one dir, main page]

Skip to content

Commit fce4651

Browse files
committed
enable all freelists again
1 parent 2551f29 commit fce4651

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Objects/iterobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ PySeqIter_New(PyObject *seq)
2323
return NULL;
2424
}
2525

26-
it = 0; //_Py_FREELIST_POP(seqiterobject, shared_iters);
26+
it = _Py_FREELIST_POP(seqiterobject, shared_iters);
2727
if (it == NULL) {
2828
it = PyObject_GC_New(seqiterobject, &PySeqIter_Type);
2929
if (it == NULL)

Objects/listobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3914,7 +3914,7 @@ list_iter(PyObject *seq)
39143914
PyErr_BadInternalCall();
39153915
return NULL;
39163916
}
3917-
_PyListIterObject *it = 0; //_Py_FREELIST_POP(_PyListIterObject, shared_iters);
3917+
_PyListIterObject *it = _Py_FREELIST_POP(_PyListIterObject, shared_iters);
39183918
if (it == NULL) {
39193919
it = PyObject_GC_New(_PyListIterObject, &PyListIter_Type);
39203920
if (it == NULL) {

Objects/tupleobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ tuple_iter(PyObject *seq)
11231123
PyErr_BadInternalCall();
11241124
return NULL;
11251125
}
1126-
it = 0; // _Py_FREELIST_POP(_PyTupleIterObject, shared_iters);
1126+
it = _Py_FREELIST_POP(_PyTupleIterObject, shared_iters);
11271127

11281128
if (it == NULL) {
11291129
it = PyObject_GC_New(_PyTupleIterObject, &PyTupleIter_Type);

0 commit comments

Comments
 (0)
0