gh-110481: Implement inter-thread queue for biased reference counting (#114824)
Biased reference counting maintains two refcount fields in each object: `ob_ref_local` and `ob_ref_shared`. The true refcount is the sum of these two fields. In some cases, when refcounting operations are split across threads, the ob_ref_shared field can be negative (although the total refcount must be at least zero). In this case, the thread that decremented the refcount requests that the owning thread give up ownership and merge the refcount fields.
S
Sam Gross committed
a3af3cb4f424034b56404704fdf8f18e8c0a9982
Parent: a225520
Committed by GitHub <noreply@github.com>
on 2/9/2024, 10:08:32 PM