gh-117657: Fix TSAN race involving import lock (#118523)
This adds a `_PyRecursiveMutex` type based on `PyMutex` and uses that for the import lock. This fixes some data races in the free-threaded build and generally simplifies the import lock code.
S
Sam Gross committed
e21057b99967eb5323320e6d1121955e0cd2985e
Parent: 417bec7
Committed by GitHub <noreply@github.com>
on 6/6/2024, 5:40:58 PM