diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-09 23:51:54 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-09 23:51:54 +0200 |
commit | 16fad0ce0d06f5e11b46f37eadbb060256b90540 (patch) | |
tree | 33dd5bc188824aa8ae498a3351dd330ee2c85bb8 /Python/ceval_gil.h | |
parent | c823f3ffde59b90df6ef240ece057d4da20e580e (diff) | |
parent | 27c856cc1a76a2448283d4a98fa74a268a097c59 (diff) | |
download | cpython-16fad0ce0d06f5e11b46f37eadbb060256b90540.tar.gz |
Issue #28649: Clear the typing module caches when search for reference leaks.
Diffstat (limited to 'Python/ceval_gil.h')
-rw-r--r-- | Python/ceval_gil.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval_gil.h b/Python/ceval_gil.h index 8d38ee9dfc..a3b450bd5c 100644 --- a/Python/ceval_gil.h +++ b/Python/ceval_gil.h @@ -178,7 +178,7 @@ static void drop_gil(PyThreadState *tstate) /* Sub-interpreter support: threads might have been switched under our feet using PyThreadState_Swap(). Fix the GIL last holder variable so that our heuristics work. */ - _Py_atomic_store_relaxed(&gil_last_holder, (Py_uintptr_t)tstate); + _Py_atomic_store_relaxed(&gil_last_holder, (uintptr_t)tstate); } MUTEX_LOCK(gil_mutex); @@ -240,7 +240,7 @@ _ready: _Py_ANNOTATE_RWLOCK_ACQUIRED(&gil_locked, /*is_write=*/1); if (tstate != (PyThreadState*)_Py_atomic_load_relaxed(&gil_last_holder)) { - _Py_atomic_store_relaxed(&gil_last_holder, (Py_uintptr_t)tstate); + _Py_atomic_store_relaxed(&gil_last_holder, (uintptr_t)tstate); ++gil_switch_number; } |