[3.13] gh-117657: Fix TSAN reported race in `_PyEval_IsGILEnabled`. (GH-119921) (#119939)
The GIL may be disabled concurrently with this call so we need to use a relaxed atomic load. (cherry picked from commit f3b89a63cbb6d46e5ed40d5cd9813cdf9189ce35) Co-authored-by: Sam Gross <colesbury@gmail.com>
M
Miss Islington (bot) committed
9d3de7b0edf46cc0f6aed586111464b2ad581f5a
Parent: cf8f292
Committed by GitHub <noreply@github.com>
on 6/2/2024, 2:42:46 PM