cpython/Lib/test/test_free_threading
Miss Islington (bot) 5c2696bc26
[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 e545ead66c)

Co-authored-by: Sam Gross <colesbury@gmail.com>
2024-10-24 14:08:15 +00:00
..
__init__.py [3.13] gh-120659: Skip test_freethreading with GIL (GH-120660) (#120694) 2024-06-18 14:46:29 +00:00
test_dict.py [3.13] gh-120579: Guard _testcapi import in test_free_threading (GH-120580) (#120583) 2024-06-16 08:50:33 +00:00
test_gc.py [3.13] gh-125859: Fix crash when gc.get_objects is called during GC (GH-125882) (GH-125921) 2024-10-24 14:08:15 +00:00
test_list.py [3.13] gh-124402: Speed up test_free_threading and test_super (#124491) (#124585) 2024-09-26 13:44:36 -07:00
test_monitoring.py [3.13] Fix typos (#123775) (#123866) 2024-10-07 23:44:31 +02:00
test_slots.py [3.13] gh-117657: Fix __slots__ thread safety in free-threaded build (GH-119368) (#120655) 2024-06-17 19:12:25 +00:00
test_str.py [3.13] gh-119247: Add macros to use PySequence_Fast safely in free-threaded build (GH-119315) (#119419) 2024-05-22 19:24:02 +00:00
test_tokenize.py [3.13] gh-120317: Lock around global state in the tokenize module (GH-120318) (#121841) 2024-07-16 10:03:47 +00:00
test_type.py [3.13] gh-124402: Speed up test_free_threading and test_super (#124491) (#124585) 2024-09-26 13:44:36 -07:00