File tree 3 files changed +3
-5
lines changed
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);
471
471
#define Py_TRASHCAN_BEGIN (op , dealloc ) \
472
472
do { \
473
473
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) { \
475
475
PyTrash_thread_deposit_object(tstate, (PyObject *)op); \
476
476
break; \
477
477
} \
478
478
tstate->c_recursion_remaining--;
479
479
/* The body of the deallocator is here. */
480
480
#define Py_TRASHCAN_END \
481
481
tstate->c_recursion_remaining++; \
482
- if (tstate->delete_later && tstate->c_recursion_remaining > 50 ) { \
482
+ if (tstate->delete_later && tstate->c_recursion_remaining > 100 ) { \
483
483
PyTrash_thread_destroy_chain(tstate); \
484
484
} \
485
485
} while (0);
Original file line number Diff line number Diff line change @@ -31,8 +31,6 @@ def replaced_module(name, replacement):
31
31
32
32
class OrderedDictTests :
33
33
34
- maxDiff = None
35
-
36
34
def test_init (self ):
37
35
OrderedDict = self .OrderedDict
38
36
with self .assertRaises (TypeError ):
Original file line number Diff line number Diff line change @@ -2723,7 +2723,7 @@ PyTrash_thread_destroy_chain(PyThreadState *tstate)
2723
2723
tups = [(tup,) for tup in tups]
2724
2724
del tups
2725
2725
*/
2726
- assert (tstate -> c_recursion_remaining > 50 );
2726
+ assert (tstate -> c_recursion_remaining > 100 );
2727
2727
tstate -> c_recursion_remaining -- ;
2728
2728
while (tstate -> delete_later ) {
2729
2729
PyObject * op = tstate -> delete_later ;
You can’t perform that action at this time.
0 commit comments