SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

gh-127521: Mark list as "shared" before resizing if necessary (#127524)

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.
S
Sam Gross committed
c7dec02de2ed4baf3cd22ad094350265b52c18af
Parent: c430376
Committed by GitHub <noreply@github.com> on 12/2/2024, 7:38:26 PM