8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92e82ac commit f0ef510Copy full SHA for f0ef510
Objects/object.c
@@ -3170,7 +3170,7 @@ _Py_Dealloc(PyObject *op)
3170
destructor dealloc = type->tp_dealloc;
3171
PyThreadState *tstate = _PyThreadState_GET();
3172
intptr_t margin = _Py_RecursionLimit_GetMargin(tstate);
3173
- if (margin < 2) {
+ if (margin < 20) {
3174
_PyTrash_thread_deposit_object(tstate, (PyObject *)op);
3175
return;
3176
}
@@ -3216,7 +3216,7 @@ _Py_Dealloc(PyObject *op)
3216
Py_XDECREF(old_exc);
3217
Py_DECREF(type);
3218
#endif
3219
- if (tstate->delete_later && margin >= 4) {
+ if (tstate->delete_later && margin >= 40) {
3220
_PyTrash_thread_destroy_chain(tstate);
3221
3222
0 commit comments