Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-119999: Fix potential race condition in `_Py_ExplicitMergeRe…
…fcount` (python#120000) We need to write to `ob_ref_local` and `ob_tid` before `ob_ref_shared`. Once we mark `ob_ref_shared` as merged, some other thread may free the object because the caller also passes in `-1` as `extra` to give up its only reference.
- Loading branch information