Files
Miss Islington (bot)andJelle Zijlstra 4bb96fc239 [3.15] gh-159739: Avoid destroying a remote unwinder cache twice (GH-159982) (#160023)
In a free-threaded build, if allocating the thread-local bytecode cache fails after the code-object cache has been created, the initializer destroys the first cache and returns an error without clearing its pointer. Failed construction then invokes the unwinder's deallocator, which destroys the same cache again and can crash the profiling process instead of propagating `MemoryError`.
(cherry picked from commit b577a5403a)

Co-authored-by: Jelle Zijlstra <jelle@openai.com>
2026-10-21 11:53:05 -07:00
..