diff options
author | Sam Gross <colesbury@gmail.com> | 2024-06-04 19:26:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-04 19:26:26 (GMT) |
commit | 4055577221f5f52af329e87f31d81bb8fb02c504 (patch) | |
tree | 0e1e6057fdf836261969f4f34851ba8b4e94c724 /Python/pythonrun.c | |
parent | 109e1082ea92f89d42cd70f2cc7ca6fba6be9bab (diff) | |
download | cpython-4055577221f5f52af329e87f31d81bb8fb02c504.zip cpython-4055577221f5f52af329e87f31d81bb8fb02c504.tar.gz cpython-4055577221f5f52af329e87f31d81bb8fb02c504.tar.bz2 |
gh-119999: Fix potential race condition in `_Py_ExplicitMergeRefcount` (#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.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions