Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-127521: Mark list as "shared" before resizing if necessary (p…
…ythonGH-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. (cherry picked from commit c7dec02) Co-authored-by: Sam Gross <[email protected]>
- Loading branch information