mirror of
https://github.com/python/cpython.git
synced 2025-10-27 11:44:39 +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. |
||
|---|---|---|
| .. | ||
| __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 | ||
| test_zip.py | ||