Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 267 Bytes

2020-03-02-20-12-33.bpo-39776.fNaxi_.rst

File metadata and controls

6 lines (5 loc) · 267 Bytes

Fix race condition where threads created by PyGILState_Ensure() could get a duplicate id.

This affects consumers of tstate->id like the contextvar caching machinery, which could return invalid cached objects under heavy thread load (observed in embedded scenarios).