summaryrefslogtreecommitdiffstats
path: root/Python/Python-tokenize.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-12-03 00:22:05 (GMT)
committerGitHub <noreply@github.com>2024-12-03 00:22:05 (GMT)
commite546876d83e1cc3f761e1eeca57f8a4533d06d00 (patch)
tree9a97ce06d140fe621a45cfbffa82f11753acbafb /Python/Python-tokenize.c
parenta8536102828ac70000fc6b4c67e0b439ab0ddf98 (diff)
downloadcpython-e546876d83e1cc3f761e1eeca57f8a4533d06d00.zip
cpython-e546876d83e1cc3f761e1eeca57f8a4533d06d00.tar.gz
cpython-e546876d83e1cc3f761e1eeca57f8a4533d06d00.tar.bz2
[3.13] gh-127521: Mark list as "shared" before resizing if necessary (GH-127524) (GH-127533)
In the free threading build, if a non-owning thread resizes a list, it must use QSBR to free the old list array because there may be a concurrent access (without a lock) from the owning thread. To match the pattern in dictobject.c, we just mark the list as "shared" before resizing if it's from a non-owning thread and not already marked as shared. (cherry picked from commit c7dec02de2ed4baf3cd22ad094350265b52c18af) Co-authored-by: Sam Gross <colesbury@gmail.com>
Diffstat (limited to 'Python/Python-tokenize.c')
0 files changed, 0 insertions, 0 deletions