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
Specifically, if the call to await self._lot.park() gets cancelled, it looks like we don't clear self._pending_borrowers[task], which could be a memory leak (since it pins task objects in memory).
The text was updated successfully, but these errors were encountered:
I was just reading the code for an unrelated reason, and realized that this code looks very suspicious:
trio/trio/_sync.py
Lines 286 to 296 in 65729b1
Specifically, if the call to
await self._lot.park()
gets cancelled, it looks like we don't clearself._pending_borrowers[task]
, which could be a memory leak (since it pins task objects in memory).The text was updated successfully, but these errors were encountered: