mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-117376: Partial implementation of deferred reference counting (#117696)
This marks objects as using deferred refrence counting using the `ob_gc_bits` field in the free-threaded build and collects those objects during GC.
This commit is contained in:
parent
c50cb6dd09
commit
4ad8f090cc
9 changed files with 82 additions and 21 deletions
|
@ -3581,6 +3581,8 @@ type_new_alloc(type_new_ctx *ctx)
|
|||
et->ht_module = NULL;
|
||||
et->_ht_tpname = NULL;
|
||||
|
||||
_PyObject_SetDeferredRefcount((PyObject *)et);
|
||||
|
||||
return type;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue