Closed
Description
Bug report
The ContextVar implementation is not thread-safe in the free-threaded build:
In particular, the caching is not thread-safe, although there may be other thread-safety issues as well:
Lines 206 to 212 in 9c08f40
Example Test Cases:
./python -m test test_context -m test_context_threads_1
./python -m test test_decimal -m test_threading