diff options
| author | Sam Gross <colesbury@gmail.com> | 2025-02-13 16:50:45 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-13 16:50:45 (GMT) |
| commit | 0559339ccdc76a63dcbd14eb2d60a41f493a1ded (patch) | |
| tree | 54a7ebae23ab23f91e42677bfa61d5c246081e35 /Python/pythonrun.c | |
| parent | c357d690033e2f976ddb6e11b8199e3fb9f66118 (diff) | |
| download | cpython-0559339ccdc76a63dcbd14eb2d60a41f493a1ded.zip cpython-0559339ccdc76a63dcbd14eb2d60a41f493a1ded.tar.gz cpython-0559339ccdc76a63dcbd14eb2d60a41f493a1ded.tar.bz2 | |
gh-130019: Fix data race in _PyType_AllocNoTrack (gh-130058)
The reference count fields, such as `ob_tid` and `ob_ref_shared`, may be
accessed concurrently in the free threading build by a `_Py_TryXGetRef`
or similar operation. The PyObject header fields will be initialized by
`_PyObject_Init`, so only call `memset()` to zero-initialize the remainder
of the allocation.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions
