diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-01 14:26:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-01 14:26:12 (GMT) |
commit | 48f3378d6c620e99f17679ee11982a57640d3bb4 (patch) | |
tree | 3da6204474060816bb97e1efb16169d86ec501fc /Python/qsbr.c | |
parent | a0559849ac2de604ffa410268be262a8482ad23c (diff) | |
download | cpython-48f3378d6c620e99f17679ee11982a57640d3bb4.zip cpython-48f3378d6c620e99f17679ee11982a57640d3bb4.tar.gz cpython-48f3378d6c620e99f17679ee11982a57640d3bb4.tar.bz2 |
[3.13] gh-117657: Fix TSAN race in free-threaded GC (GH-119883) (#119903)
Only call `gc_restore_tid()` from stop-the-world contexts.
`worklist_pop()` can be called while other threads are running, so use a
relaxed atomic to modify `ob_tid`.
(cherry picked from commit 60593b2052ca275559c11028d50e19f8e5dfee13)
Co-authored-by: Sam Gross <colesbury@gmail.com>
Diffstat (limited to 'Python/qsbr.c')
0 files changed, 0 insertions, 0 deletions