Files
Jelle Zijlstra c2b7e0a866 gh-159739: Guard cProfile against reentry while processing an external timer (#160405)
An external timer can run Python again when the profiler converts or releases its result or reports an unraisable exception. Calling clear() or disable() at that point could free a profiling context still in use. Calling Profiler.__init__() from the timer could also destroy the active callable. Keep the guard active through result handling and reject reinitialization while an external timer is running.
2026-10-23 21:59:01 -07:00
..