mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
GH-128682: Account for escapes in DECREF_INPUTS
(GH-129953)
* Handle escapes in DECREF_INPUTS * Mark a few more functions as escaping * Replace DECREF_INPUTS with PyStackRef_CLOSE where possible
This commit is contained in:
parent
3e222e3a15
commit
72f56654d0
18 changed files with 2228 additions and 921 deletions
|
@ -1996,6 +1996,7 @@ Py_ssize_t
|
|||
_PyGC_Collect(PyThreadState *tstate, int generation, _PyGC_Reason reason)
|
||||
{
|
||||
GCState *gcstate = &tstate->interp->gc;
|
||||
assert(tstate->current_frame == NULL || tstate->current_frame->stackpointer != NULL);
|
||||
|
||||
int expected = 0;
|
||||
if (!_Py_atomic_compare_exchange_int(&gcstate->collecting, &expected, 1)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue