Lines Matching refs:state
123 struct _Py_list_state *state = &interp->list;
124 while (state->numfree) {
125 PyListObject *op = state->free_list[--state->numfree];
137 struct _Py_list_state *state = &interp->list;
138 state->numfree = -1;
142 /* Print summary info about the state of the optimized allocator */
147 struct _Py_list_state *state = get_list_state();
150 state->numfree, sizeof(PyListObject));
165 struct _Py_list_state *state = get_list_state();
168 assert(state->numfree != -1);
170 if (PyList_MAXFREELIST && state->numfree) {
171 state->numfree--;
172 op = state->free_list[state->numfree];
362 struct _Py_list_state *state = get_list_state();
365 assert(state->numfree != -1);
367 if (state->numfree < PyList_MAXFREELIST && PyList_CheckExact(op)) {
368 state->free_list[state->numfree++] = op;
1181 * a convenient way to pass state around among the helper functions.
2246 * list will be some permutation of its input state (nothing is lost or
3158 static PyObject *listiter_setstate(listiterobject *, PyObject *state);
3161 PyDoc_STRVAR(reduce_doc, "Return state information for pickling.");
3162 PyDoc_STRVAR(setstate_doc, "Set state information for unpickling.");
3282 listiter_setstate(listiterobject *it, PyObject *state)
3284 Py_ssize_t index = PyLong_AsSsize_t(state);
3433 listreviter_setstate(listreviterobject *it, PyObject *state)
3435 Py_ssize_t index = PyLong_AsSsize_t(state);