summaryrefslogtreecommitdiffstats
path: root/external/python3/tsan.patch.0
blob: d599ec046109d0a29b75e07c1e075453db33002a (plain)
1
2
3
4
5
6
7
8
9
10
--- Python/ceval_gil.h
+++ Python/ceval_gil.h
@@ -135,6 +135,7 @@
 
 static void recreate_gil(struct _gil_runtime_state *gil)
 {
+    _Py_ANNOTATE_RWLOCK_RELEASED(&gil->locked, 1);
     _Py_ANNOTATE_RWLOCK_DESTROY(&gil->locked);
     /* XXX should we destroy the old OS resources here? */
     create_gil(gil);