]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-129236: Use `stackpointer` in free threaded GC (#129240)
authorSam Gross <colesbury@gmail.com>
Wed, 29 Jan 2025 15:40:51 +0000 (10:40 -0500)
committerGitHub <noreply@github.com>
Wed, 29 Jan 2025 15:40:51 +0000 (10:40 -0500)
commit5ff2fbc026b14eadd41b8c14d83bb1eb832292dd
tree24f154649f285275fd77f7c7c46470d5804eaac1
parenta29221675e7367608961c3484701ab2671ec6f3c
gh-129236: Use `stackpointer` in free threaded GC (#129240)

The stack pointers in interpreter frames are nearly always valid now, so
use them when visiting each thread's frame. For now, don't collect
objects with deferred references in the rare case that we see a frame
with a NULL stack pointer.
Include/internal/pycore_frame.h
Python/gc_free_threading.c