GH-138355: Remove trash_delete_later from _gc_runtime_state (#138767)
Remove trash_delete_later and trash_delete_nesting from _gc_runtime_state.
This commit is contained in:
@@ -3051,7 +3051,7 @@ finally:
|
||||
|
||||
/* Trashcan support. */
|
||||
|
||||
/* Add op to the gcstate->trash_delete_later list. Called when the current
|
||||
/* Add op to the tstate->delete_later list. Called when the current
|
||||
* call-stack depth gets large. op must be a gc'ed object, with refcount 0.
|
||||
* Py_DECREF must already have been called on it.
|
||||
*/
|
||||
@@ -3077,7 +3077,7 @@ _PyTrash_thread_deposit_object(PyThreadState *tstate, PyObject *op)
|
||||
tstate->delete_later = op;
|
||||
}
|
||||
|
||||
/* Deallocate all the objects in the gcstate->trash_delete_later list.
|
||||
/* Deallocate all the objects in the tstate->delete_later list.
|
||||
* Called when the call-stack unwinds again. */
|
||||
void
|
||||
_PyTrash_thread_destroy_chain(PyThreadState *tstate)
|
||||
|
||||
Reference in New Issue
Block a user