summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-10-24 14:08:15 (GMT)
committerGitHub <noreply@github.com>2024-10-24 14:08:15 (GMT)
commit5c2696bc261905b84c71ddbee3f439af568a8795 (patch)
tree761f299ab0ec18c47d5751e5d4e3d6a0c0c6ad3b /Python/pythonrun.c
parente334022de0adef5bbf1f59c5226ca521dcfed4aa (diff)
downloadcpython-5c2696bc261905b84c71ddbee3f439af568a8795.zip
cpython-5c2696bc261905b84c71ddbee3f439af568a8795.tar.gz
cpython-5c2696bc261905b84c71ddbee3f439af568a8795.tar.bz2
[3.13] gh-125859: Fix crash when `gc.get_objects` is called during GC (GH-125882) (GH-125921)
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. (cherry picked from commit e545ead66ce725aae6fb0ad5d733abe806c19750) Co-authored-by: Sam Gross <colesbury@gmail.com>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions