8000 bigger numbers · python/cpython@f0ef510 · GitHub
[go: up one dir, main page]

Skip to content

Commit f0ef510

Browse files
committed
bigger numbers
1 parent 92e82ac commit f0ef510

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/object.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3170,7 +3170,7 @@ _Py_Dealloc(PyObject *op)
31703170
destructor dealloc = type->tp_dealloc;
31713171
PyThreadState *tstate = _PyThreadState_GET();
31723172
intptr_t margin = _Py_RecursionLimit_GetMargin(tstate);
3173-
if (margin < 2) {
3173+
if (margin < 20) {
31743174
_PyTrash_thread_deposit_object(tstate, (PyObject *)op);
31753175
return;
31763176
}
@@ -3216,7 +3216,7 @@ _Py_Dealloc(PyObject *op)
32163216
Py_XDECREF(old_exc);
32173217
Py_DECREF(type);
32183218
#endif
3219-
if (tstate->delete_later && margin >= 4) {
3219+
if (tstate->delete_later && margin >= 40) {
32203220
_PyTrash_thread_destroy_chain(tstate);
32213221
}
32223222
}

0 commit comments

Comments
 (0)
0