mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-113753: Clear finalized bit when putting PyAsyncGenASend back into free list (#113754)
This commit is contained in:
parent
901a971e16
commit
73ae2023a7
4 changed files with 16 additions and 0 deletions
|
@ -122,6 +122,10 @@ static inline void _PyGC_SET_FINALIZED(PyObject *op) {
|
|||
PyGC_Head *gc = _Py_AS_GC(op);
|
||||
_PyGCHead_SET_FINALIZED(gc);
|
||||
}
|
||||
static inline void _PyGC_CLEAR_FINALIZED(PyObject *op) {
|
||||
PyGC_Head *gc = _Py_AS_GC(op);
|
||||
gc->_gc_prev &= ~_PyGC_PREV_MASK_FINALIZED;
|
||||
}
|
||||
|
||||
|
||||
/* GC runtime state */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue