summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2024-10-24 13:33:11 (GMT)
committerGitHub <noreply@github.com>2024-10-24 13:33:11 (GMT)
commite545ead66ce725aae6fb0ad5d733abe806c19750 (patch)
tree00c0125dc1c8929c76ad5d1e1100136cfa6591a9 /Python/pythonrun.c
parentb61fece8523d0fa6d9cc6ad3fd855a136c34f0cd (diff)
downloadcpython-e545ead66ce725aae6fb0ad5d733abe806c19750.zip
cpython-e545ead66ce725aae6fb0ad5d733abe806c19750.tar.gz
cpython-e545ead66ce725aae6fb0ad5d733abe806c19750.tar.bz2
gh-125859: Fix crash when `gc.get_objects` is called during GC (#125882)
This fixes a crash when `gc.get_objects()` or `gc.get_referrers()` is called during a GC in the free threading build. Switch to `_PyObjectStack` to avoid corrupting the `struct worklist` linked list maintained by the GC. Also, don't return objects that are frozen (`gc.freeze()`) or in the process of being collected to more closely match the behavior of the default build.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions