mirror of
https://github.com/python/cpython.git
synced 2026-01-27 17:52:19 +00:00
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
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_dict.py | ||
| test_gc.py | ||
| test_list.py | ||
| test_monitoring.py | ||
| test_slots.py | ||
| test_str.py | ||
| test_tokenize.py | ||
| test_type.py | ||