diff options
author | Sam Gross <colesbury@gmail.com> | 2024-10-24 13:33:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-24 13:33:11 (GMT) |
commit | e545ead66ce725aae6fb0ad5d733abe806c19750 (patch) | |
tree | 00c0125dc1c8929c76ad5d1e1100136cfa6591a9 /Python/pythonrun.c | |
parent | b61fece8523d0fa6d9cc6ad3fd855a136c34f0cd (diff) | |
download | cpython-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