Skip to content

gh-145036: Fix data race for list capacity#145365

Open
bkap123 wants to merge 2 commits intopython:mainfrom
bkap123:list-thread-race
Open

gh-145036: Fix data race for list capacity#145365
bkap123 wants to merge 2 commits intopython:mainfrom
bkap123:list-thread-race

Conversation

@bkap123
Copy link
Contributor

@bkap123 bkap123 commented Feb 28, 2026

Changes list___sizeof___impl to use list_capacity() when determining size of a list object in order to prevent a data race.

Also, not exactly sure what to do for a test. The current test fails on main only when configured with TSan. Any feedback/suggestions would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant