Prevent deadlock in LRUCache.setdefault
Before adoption: this commit came in with the history the project adopted, so no landing records it.
setdefault was acquiring write_lock, then calling getitem and also potentially setitem, which also both try to acquire the write lock.
authored by EtiennePelletier · committed by David Lord · parent 7113349 · Browse files · 2 files+6 added−10 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+6 added−10 removed
- other:+6 added−10 removed