You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make functools.lru_cache thread-safe in --disable-gil builds #112070
No need for an extra mutex in lru_cache_object; every PyObject has a mutex in the --disable-gil builds
For _functools__lru_cache_wrapper_cache_info_impl and _functools__lru_cache_wrapper_cache_clear_impl we should instead use the @critical_section Arugment Clinic directive. This will be simpler and require fewer changes to the code. lru_cache_call still needs explicit calls to the critical section API.
Activity
wanderxjtu commentedon Nov 15, 2023
I will try on it.
pythongh-112070: make `functools.lrucacle` threadsafe in --disable-gi…
pythongh-112070: make `functools.lrucacle` threadsafe in --disable-gi…
pythongh-112070: add NEWS file
pythongh-112070: update generate `functoolsmodule` files
pythongh-112070: update generate `functoolsmodule` files
pythongh-112070: add NEWS file
pythongh-112070: reformat functoolsmodule.c
gh-112070: make `functools.lru_cache` threadsafe in --disable-gil bui…
pythongh-112070: make `functools.lru_cache` threadsafe in --disable-g…
pythongh-112070: make `functools.lru_cache` threadsafe in --disable-g…