File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -468,8 +468,8 @@ PyAPI_FUNC(void) _PyTrash_thread_destroy_chain(PyThreadState *tstate);
468
468
469
469
/* Python 3.10 private API, invoked by the Py_TRASHCAN_BEGIN(). */
470
470
471
- /* To avoid raising recursion errors during dealloc, trigger trashcan before we reach
472
- * recursion limit. To avoid thrashing , we don't attempt to empty the trashcan until
471
+ /* To avoid raising recursion errors during dealloc trigger trashcan before we reach
472
+ * recursion limit. To avoid trashing , we don't attempt to empty the trashcan until
473
473
* we have headroom above the trigger limit */
474
474
#define Py_TRASHCAN_HEADROOM 50
475
475
@@ -480,10 +480,10 @@ do { \
480
480
_PyTrash_thread_deposit_object(tstate, (PyObject *)op); \
481
481
break; \
482
482
} \
483
- tstate->c_recursion_remaining -= 2 ;
483
+ tstate->c_recursion_remaining-- ;
484
484
/* The body of the deallocator is here. */
485
485
#define Py_TRASHCAN_END \
486
- tstate->c_recursion_remaining += 2 ; \
486
+ tstate->c_recursion_remaining++ ; \
487
487
if (tstate->delete_later && tstate->c_recursion_remaining > (Py_TRASHCAN_HEADROOM*2)) { \
488
488
_PyTrash_thread_destroy_chain(tstate); \
489
489
} \
You can’t perform that action at this time.
0 commit comments