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
Free-threaded builds: an idle Events check thread keeps the last check's data for up to 60 seconds #848
On a free-threaded build with the GIL off, an object created on one thread and dropped by another is freed only when the thread that created it next runs Python code.
The Events check thread (Pydantic validation) builds a failed check's error, its traceback and the request data, or a successful check's result. When it then sits idle, for up to 60 s, those objects stay alive even though the caller has dropped them. That is at most one set per idle thread. It is a delay, not a leak, but large request data can stay in memory longer than expected.
Possible fixes: shorten the idle wait, or have the check thread clear its own references before it waits for the next job.
Found while fixing the 3.14t test in #844, which shortens the idle wait in the test. Related: #708.
Activity