[3.13] gh-129668: Fix thread-safety of MemoryError freelist in free threaded build (gh-129704) (gh-129742)
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 51b4edb1a4092f60d84f7d14eb41c12085e39c31)
S
Sam Gross committed
356a9e646c0e00a8f8941cab1a9bd9d58597fd15
Parent: de84531
Committed by GitHub <noreply@github.com>
on 2/6/2025, 6:27:30 PM