Skip to content

gh-157415: Fix data race in pthread wrapper - #157430

Open
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:pythread_wrapper
Open

gh-157415: Fix data race in pthread wrapper#157430
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:pythread_wrapper

Conversation

@vstinner

@vstinner vstinner commented Sep 13, 2026

Copy link
Copy Markdown
Member

Use free() instead of PyMem_RawFree() in pythread_wrapper() to avoid a data race if another thread calls PyMem_SetAllocator() in parallel.

Use free() instead of PyMem_RawFree() in pythread_wrapper() to avoid
a data race if another thread calls PyMem_SetAllocator() in parallel.

Co-Authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
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