File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -471,15 +471,15 @@ PyAPI_FUNC(void) PyTrash_thread_destroy_chain(PyThreadState *tstate);
471471#define Py_TRASHCAN_BEGIN (op , dealloc ) \
472472do { \
473473 PyThreadState *tstate = PyThreadState_Get(); \
474- if (tstate->c_recursion_remaining <= 0 && Py_TYPE(op)->tp_dealloc == (destructor)dealloc) { \
474+ if (tstate->c_recursion_remaining <= 50 && Py_TYPE(op)->tp_dealloc == (destructor)dealloc) { \
475475 PyTrash_thread_deposit_object(tstate, (PyObject *)op); \
476476 break; \
477477 } \
478478 tstate->c_recursion_remaining--;
479479 /* The body of the deallocator is here. */
480480#define Py_TRASHCAN_END \
481481 tstate->c_recursion_remaining++; \
482- if (tstate->delete_later && tstate->c_recursion_remaining > 50 ) { \
482+ if (tstate->delete_later && tstate->c_recursion_remaining > 100 ) { \
483483 PyTrash_thread_destroy_chain(tstate); \
484484 } \
485485} while (0);
Original file line number Diff line number Diff line change @@ -31,8 +31,6 @@ def replaced_module(name, replacement):
3131
3232class OrderedDictTests :
3333
34- maxDiff = None
35-
3634 def test_init (self ):
3735 OrderedDict = self .OrderedDict
3836 with self .assertRaises (TypeError ):
Original file line number Diff line number Diff line change @@ -2723,7 +2723,7 @@ PyTrash_thread_destroy_chain(PyThreadState *tstate)
27232723 tups = [(tup,) for tup in tups]
27242724 del tups
27252725 */
2726- assert (tstate -> c_recursion_remaining > 50 );
2726+ assert (tstate -> c_recursion_remaining > 100 );
27272727 tstate -> c_recursion_remaining -- ;
27282728 while (tstate -> delete_later ) {
27292729 PyObject * op = tstate -> delete_later ;
You can’t perform that action at this time.
0 commit comments