Lines Matching refs:state
70 transition to Active upon key insertion. This is each slot's initial state.
261 struct _Py_dict_state *state = &interp->dict_state;
262 while (state->numfree) {
263 PyDictObject *op = state->free_list[--state->numfree];
267 while (state->keys_numfree) {
268 PyObject_Free(state->keys_free_list[--state->keys_numfree]);
279 struct _Py_dict_state *state = &interp->dict_state;
280 state->numfree = -1;
281 state->keys_numfree = -1;
292 /* Print summary info about the state of the optimized allocator */
297 struct _Py_dict_state *state = get_dict_state();
299 state->numfree, sizeof(PyDictObject));
620 struct _Py_dict_state *state = get_dict_state();
623 assert(state->keys_numfree != -1);
625 if (log2_size == PyDict_LOG_MINSIZE && unicode && state->keys_numfree > 0) {
626 dk = state->keys_free_list[--state->keys_numfree];
676 struct _Py_dict_state *state = get_dict_state();
679 assert(state->keys_numfree != -1);
682 && state->keys_numfree < PyDict_MAXFREELIST
684 state->keys_free_list[state->keys_numfree++] = keys;
722 struct _Py_dict_state *state = get_dict_state();
725 assert(state->numfree != -1);
727 if (state->numfree) {
728 mp = state->free_list[--state->numfree];
1540 struct _Py_dict_state *state = get_dict_state();
1543 assert(state->keys_numfree != -1);
1547 state->keys_numfree < PyDict_MAXFREELIST)
1549 state->keys_free_list[state->keys_numfree++] = oldkeys;
2381 struct _Py_dict_state *state = get_dict_state();
2384 assert(state->numfree != -1);
2386 if (state->numfree < PyDict_MAXFREELIST && Py_IS_TYPE(mp, &PyDict_Type)) {
2387 state->free_list[state->numfree++] = mp;
4031 PyDoc_STRVAR(reduce_doc, "Return state information for pickling.");
4056 di->di_used = -1; /* Make this state sticky */
4157 di->di_used = -1; /* Make this state sticky */
4257 di->di_used = -1; /* Make this state sticky */
4385 di->di_used = -1; /* Make this state sticky */
4505 /* copy the iterator state */