cpython/Lib/test/test_free_threading
Sam Gross e236568c0e
[3.13] gh-137400: Fix a crash when disabling profiling across all threads (gh-137471) (gh-137649)
The `PyEval_SetProfileAllThreads` function and other related functions
had a race condition on `tstate->c_profilefunc` that could lead to a
crash when disable profiling or tracing on all threads while another
thread is starting to profile or trace a a call.

There are still potential crashes when threads exit concurrently with
profiling or tracing be enabled/disabled across all threads.
(cherry picked from commit 362692852f)
2025-08-11 16:07:21 +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_bisect.py [3.13] GH-116738: document thread-safety of bisect (GH-136555) (#137222) 2025-07-30 11:50:39 +00:00
test_code.py [3.13] gh-127020: Make PyCode_GetCode thread-safe for free threading (GH-127043) (GH-127107) 2024-11-21 16:27:36 +00:00
test_dict.py gh-132869: Fix crash in _PyObject_TryGetInstanceAttribute (#133700) 2025-05-14 12:47:34 +09:00
test_func_annotations.py [3.13] gh-128714: Fix function object races in __annotate__, __annotations__ and __type_params__ in free-threading build (GH-129016) (#129729) 2025-02-23 21:49:55 -05: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] gh-137400: Fix a crash when disabling profiling across all threads (gh-137471) (gh-137649) 2025-08-11 16:07:21 +00:00
test_set.py [3.13] gh-129967: Fix race condition in repr(set) (gh-129978) (gh-130020) 2025-02-11 18:18:12 -05: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-127316: fix incorrect assertion in setting __class__ in free-threading (GH-127399) (#127422) 2024-11-29 16:36:44 +00:00