Skip to content

[3.13] gh-129668: Fix thread-safety of MemoryError freelist in free threaded build (gh-129704)#129742

Merged
colesbury merged 1 commit intopython:3.13from
colesbury:backport-51b4edb-3.13
Feb 6, 2025
Merged

[3.13] gh-129668: Fix thread-safety of MemoryError freelist in free threaded build (gh-129704)#129742
colesbury merged 1 commit intopython:3.13from
colesbury:backport-51b4edb-3.13

Conversation

@colesbury
Copy link
Copy Markdown
Contributor

@colesbury colesbury commented Feb 6, 2025

The MemoryError freelist was not thread-safe in the free threaded build. Use a mutex to protect accesses to the freelist. Unlike other freelists, the MemoryError freelist is not performance sensitive.

(cherry picked from commit 51b4edb)

…readed build (pythongh-129704)

The MemoryError freelist was not thread-safe in the free threaded build.
Use a mutex to protect accesses to the freelist. Unlike other freelists,
the MemoryError freelist is not performance sensitive.

(cherry picked from commit 51b4edb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant