cpython/Python
Petr Viktorin d8d3df5336
[3.14] gh-149816: #96 Fix a race condition in invoke_gc_callback with free threading (GH-150029) (GH-156119) (#159310)
(cherry picked from commit 91d71dd670)
(cherry picked from commit e96bd136eb)

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Co-authored-by: dzaramelcone <134235821+dzaramelcone@users.noreply.github.com>
2026-10-20 17:42:26 -07:00
..
clinic [3.14] gh-155952: Fix <unrepresentable> Argument Clinic defaults in several signatures (#156172) 2026-08-21 13:23:30 +01:00
frozen_modules
_contextvars.c gh-128384: Use a context variable for warnings.catch_warnings (gh-130010) 2025-04-09 16:18:54 -07:00
_warnings.c [3.14] gh-158973: Reset the warnings lock after fork in the child (gh-158974) (gh-159615) 2026-10-20 00:06:42 +00:00
asdl.c
asm_trampoline.S [3.14] gh-139808: Add branch protections for aarch64 in asm_trampoline.S (#130864) (#150189) 2026-05-21 18:41:26 +02:00
asm_trampoline_aarch64.h [3.14] gh-139808: Add branch protections for aarch64 in asm_trampoline.S (#130864) (#150189) 2026-05-21 18:41:26 +02:00
assemble.c [3.14] gh-151112: Fix double free in assemble_init when out of memory (GH-151142) (#151206) 2026-06-09 21:13:45 +01:00
ast.c [3.14] gh-85260: Extend the AST Validator to validate all identifiers (GH-21069) (GH-155651) 2026-08-13 05:58:06 +00:00
ast_preprocess.c [3.14] gh-131927: Do not emit PEP 765 warnings in ast.parse() (GH-139642) (GH-140786) 2025-10-30 11:25:34 +00:00
ast_unparse.c [3.14] gh-132661: Disallow Template/str concatenation after PEP 750 spec update (#135996) (#136901) 2025-07-21 17:34:54 +02:00
bltinmodule.c [3.14] gh-150285: Fix too long docstrings in builtins (GH-150293) (GH-150466) 2026-05-26 10:05:49 +00:00
bootstrap_hash.c GH-131238: Core header refactor (GH-131250) 2025-03-17 09:19:04 +00:00
brc.c [3.14] gh-157838: Merge biased refcounts on behalf of detached threads (#157839) (#158012) 2026-09-29 08:22:24 +05:30
bytecodes.c [3.14] gh-154902: Type-check the SET_ADD operand (#155072) 2026-08-05 07:24:50 -07:00
ceval.c [3.14] gh-159320: Enable stack size detection on Android (GH-159321) (#159410) 2026-10-14 12:44:00 +00:00
ceval_gil.c [3.14] GH-133136: Revise QSBR to reduce excess memory held (gh-135473) (#135912) 2025-07-08 10:58:01 -07:00
ceval_macros.h [3.14] gh-129752: Don't update adaptive counters when TLBC=0 in free-threading. (gh-155497) (gh-155715) 2026-08-13 15:20:04 +00:00
codecs.c [3.14] gh-159739: Bound encoding-name lookahead in surrogatepass (GH-159785) (#159912) 2026-10-20 18:38:32 +00:00
codegen.c [3.14] gh-156091: Fix crash compiling deeply nested inlined comprehensions (GH-156957) (#156993) 2026-09-05 16:27:05 +00:00
compile.c [3.14] gh-156466: Fix additional compiler scope cleanup errors (GH-156547) (#156572) 2026-08-29 12:42:26 +00:00
condvar.h
config_common.h
context.c [3.14] gh-155519: fix data-race for Context.ctx_vars (GH-155522) (#155892) 2026-08-20 15:21:09 +05:30
critical_section.c [3.14] gh-150902: Optimize PyCriticalSection2 to skip locking the same locks held by the current CS2 (gh-151555) 2026-06-19 09:51:55 -04:00
crossinterp.c [3.14] gh-151842: Fix crash upon OOM in _interpreters.capture_exception (GH-151843) (GH-152032) 2026-06-23 20:57:34 +00:00
crossinterp_data_lookup.h [3.14] gh-146615: Fix format specifiers in Python/ directory (GH-146619) (GH-146650) 2026-03-31 08:25:07 +00:00
crossinterp_exceptions.h [3.14] gh-132775: Clean Up Cross-Interpreter Error Handling (gh-135492) 2025-06-14 02:08:25 +00:00
dtoa.c [3.14] gh-158446: Reject float format precision near INT_MAX (GH-158474) (#158477) 2026-09-30 08:36:53 +00:00
dup2.c
dynamic_annotations.c
dynload_hpux.c
dynload_shlib.c gh-131238: Remove more includes from pycore_interp.h (#131480) 2025-03-19 23:01:32 +01:00
dynload_stub.c
dynload_win.c gh-131238: Remove pycore_runtime.h from pycore_pystate.h (#131356) 2025-03-19 17:33:24 +01:00
emscripten_signal.c
emscripten_syscalls.c [3.14] gh-124621: Emscripten: Support pyrepl in browser (GH-136931) (GH-136988) 2025-07-22 15:04:11 +02:00
emscripten_trampoline.c [3.14] gh-145037: Fix Emscripten trampoline with emcc >= 4.0.19 (GH-145038) (#145283) 2026-02-27 08:55:59 +08:00
emscripten_trampoline_inner.c [3.14] gh-128627: Use __builtin_wasm_test_function_pointer_signature for Emscripten trampoline (GH-137470) (#139039) 2025-09-17 17:21:01 +01:00
errors.c [3.14] gh-158893: Make os.strerror() thread-safe (#159120) (#159145) 2026-10-10 20:54:38 +00:00
executor_cases.c.h [3.14] gh-154902: Type-check the SET_ADD operand (#155072) 2026-08-05 07:24:50 -07:00
fileutils.c [3.14] gh-158893: Make os.strerror() thread-safe (#159120) (#159145) 2026-10-10 20:54:38 +00:00
flowgraph.c [3.14] gh-148817: Fold long lists/sets of constant elements into constant tu… (#155898) 2026-08-16 17:16:24 +03:00
formatter_unicode.c [3.14] gh-159739: Check character formatting allocation failure (GH-159746) (#159840) 2026-10-20 08:45:25 -07:00
frame.c [3.14] gh-144446: Fix some frame object thread-safety issues (gh-144479) (#144546) 2026-02-06 15:25:36 +00:00
frozen.c GH-89435: os.path should not be a frozen module (#126924) 2024-11-22 18:50:30 +00:00
frozenmain.c
future.c gh-126139: Improve error message location for future statement with unknown feature (#126140) 2024-10-29 23:57:59 +00:00
gc.c [3.14] GH-148726: Add heap_size to _gc_runtime_state (#149025) 2026-04-29 13:04:11 +03:00
gc_free_threading.c [3.14] gh-149816: #96 Fix a race condition in invoke_gc_callback with free threading (GH-150029) (GH-156119) (#159310) 2026-10-20 17:42:26 -07:00
gc_gil.c
generated_cases.c.h [3.14] gh-154902: Type-check the SET_ADD operand (#155072) 2026-08-05 07:24:50 -07:00
getargs.c [3.14] gh-146615: Fix format specifiers in Python/ directory (GH-146619) (GH-146650) 2026-03-31 08:25:07 +00:00
getcompiler.c
getcopyright.c gh-126133: Only use start year in PSF copyright, remove end years (#126236) 2024-11-12 15:59:19 +02:00
getopt.c GH-133336: Remove reserved `-J` flag for Jython (#133444) 2025-05-05 15:09:19 +00:00
getplatform.c
getversion.c [3.14] gh-119132: Remove "experimental" tag from the CPython free-threading. (gh-135550) (gh-135565) 2025-06-16 14:58:14 +00:00
hamt.c [3.14] gh-155515: Use GC tracking for HAMT iterators (GH-155517) (#155698) 2026-08-17 06:40:05 +03:00
hashtable.c
import.c [3.14] gh-156126: Fix crash in -X importtime with unencodable module … (#156330) 2026-08-25 00:11:08 +03:00
importdl.c [3.14] gh-140011: Delete importdl assertion that prevents importing embedded modules from packages (GH-141605) (#141986) 2025-11-28 23:30:57 -08:00
index_pool.c [3.14] gh-91048: Refactor and optimize remote debugging module (#134652) (#134673) 2025-05-25 22:10:20 +00:00
initconfig.c [3.14] gh-159739: Release replaced PyInitConfig strings (GH-159769) (#159810) 2026-10-20 00:32:57 +00:00
instruction_sequence.c GH-124715: Move trashcan mechanism into Py_Dealloc (GH-132280) 2025-04-30 11:37:53 +01:00
instrumentation.c [3.14] gh-158121: Preserve instruction events when line monitoring is… (#159741) 2026-10-19 14:19:52 -07:00
interpconfig.c [3.14] gh-159739: Handle interpreter configuration encoding errors (GH-159747) (#159844) 2026-10-20 11:12:29 -07:00
intrinsics.c Get rid of ERROR_IF's "label" parameter (GH-132654) 2025-04-29 17:21:53 -07:00
jit.c [3.14] GH-146128: Remove the buggy AArch64 "33rx" relocation (GH-146263) (#148198) 2026-04-07 14:05:47 +03:00
legacy_tracing.c [3.14] gh-148037: remove critical section from PyCode_Addr2Line (GH… (#148353) 2026-04-10 23:59:38 +05:30
lock.c [3.14] gh-158973: Reset the warnings lock after fork in the child (gh-158974) (gh-159615) 2026-10-20 00:06:42 +00:00
marshal.c [3.14] gh-159184: Do not compare set elements when marshalling a set (GH-159196) (#159206) 2026-10-11 23:27:34 +00:00
modsupport.c gh-132909: handle overflow for 'K' format in do_mkvalue (#132911) 2025-04-25 11:02:57 +00:00
mysnprintf.c
mystrtoul.c
object_stack.c
opcode_targets.h gh-100239: specialize BINARY_OP/SUBSCR for list-slice (#132626) 2025-05-01 10:28:52 +00:00
optimizer.c [3.14] gh-137007: Track executor before any possible deallocations (GH-137016) (GH-142541) 2025-12-10 22:54:28 +00:00
optimizer_analysis.c [3.14] gh-145235: Make dict watcher API thread-safe for free-threaded builds (gh-145233) (#149691) 2026-05-12 13:21:31 -04:00
optimizer_bytecodes.c [3.14] gh-135608: Add a null check for attribute promotion to fix a JIT crash (GH-135613) (#135739) 2025-06-20 15:24:25 +08:00
optimizer_cases.c.h [3.14] gh-135608: Add a null check for attribute promotion to fix a JIT crash (GH-135613) (#135739) 2025-06-20 15:24:25 +08:00
optimizer_symbols.c [3.14] gh-137728 gh-137762: Fix bugs in the JIT with many local variables (GH-137764) (#137999) 2025-08-21 17:00:05 +03:00
parking_lot.c [3.14] gh-148820: Fix _PyRawMutex use-after-free on spurious semaphore wakeup (gh-148852) (#148884) 2026-04-22 18:59:58 +00:00
pathconfig.c gh-111924: Fix data races when swapping allocators (gh-130287) 2025-02-20 11:31:15 -05:00
perf_jit_trampoline.c [3.14] gh-156114: Fix crash in perf trampoline with unencodable code names (GH-156300) (#157775) 2026-09-18 21:35:08 +00:00
perf_trampoline.c [3.14] gh-156114: Fix crash in perf trampoline with unencodable code names (GH-156300) (#157775) 2026-09-18 21:35:08 +00:00
preconfig.c [3.14] gh-145092: Fix compiler warning for memchr() and wcschr() returning const pointer (GH-145093) (GH-145102) 2026-02-22 08:28:17 +00:00
pyarena.c Chore: Fix typo in pyarena.c (#126527) 2024-11-07 16:37:41 +01:00
pyctype.c
pyfpe.c
pyhash.c
pylifecycle.c [3.14] gh-151218: Replace sys.flags in PyConfig_Set() (#151402) (#151553) 2026-06-16 18:55:35 +02:00
pymath.c
pystate.c [3.14] gh-159041: Fix use-after-free in asyncio task tracking during thread state cleanup (#159073) (#159695) 2026-10-19 06:39:35 +00:00
pystrcmp.c
pystrhex.c [3.14] gh-141370: Fix undefined behavior when using Py_ABS() (GH-141548) (GH-142301) 2025-12-12 15:11:43 +00:00
pystrtod.c [3.14] gh-158446: Reject float format precision near INT_MAX (GH-158474) (#158477) 2026-09-30 08:36:53 +00:00
Python-ast.c [3.14] gh-156909: Fix AST.__repr__ call getting the _fields attribute (GH-157490) (GH-157596) (GH-159232) 2026-10-13 12:12:05 +02:00
Python-tokenize.c gh-111178: Fix function signatures for test_types (#131455) 2025-03-19 13:46:17 +00:00
pythonrun.c [3.14] gh-152132: Test Py_CompileString() in test_capi.test_run (#153470) (#153473) 2026-07-10 02:08:14 +00:00
pytime.c [3.14] gh-152849: Fix OverflowError message for out-of-range timestamps in the time module (GH-152850) (#153208) 2026-07-06 15:16:34 +00:00
qsbr.c [3.14] gh-144438: Fix false sharing between QSBR and tlbc_index (gh-144554) (#144923) 2026-03-31 19:20:24 +00:00
README
remote_debug.h [3.14] gh-158539: Fix macOS runtime section lookup for remote debugging (GH-158874) (#158906) 2026-10-06 17:13:01 +01:00
remote_debugging.c [3.14] gh-158893: Make os.strerror() thread-safe (#159120) (#159145) 2026-10-10 20:54:38 +00:00
specialize.c [3.14] gh-152075: Avoid lock contention in _Py_Specialize_LoadGlobal under free threading (gh-153720) (#158904) 2026-10-06 18:47:51 +05:30
stackrefs.c [3.14] gh-133590: ensure that TableEntry.linenumber_borrow is initialized (GH-133681) (#133872) 2025-05-11 08:44:22 +00:00
stdlib_module_names.h GH-91048: Minor fixes for `_remotedebugging & rename to _remote_debugging` (#133398) 2025-05-05 02:30:14 +02:00
structmember.c [3.14] gh-146270: Fix PyMember_SetOne(..., NULL) not being atomic (gh-148800) (#149460) 2026-05-06 14:16:36 +00:00
suggestions.c GH-131238: Core header refactor (GH-131250) 2025-03-17 09:19:04 +00:00
symtable.c [3.14] gh-156525: fix a few error path scope management bugs in symtable (GH-156526) (#156533) 2026-08-28 19:56:34 -07:00
sysmodule.c [3.14] gh-151218: Replace sys.flags in PyConfig_Set() (#151402) (#151553) 2026-06-16 18:55:35 +02:00
thread.c gh-131238: Add explicit includes to pycore headers (#131257) 2025-03-17 12:32:43 +01:00
thread_nt.h GH-131296: Add missing UNREACHABLE mark in thread_nt.h (GH-131589) 2025-03-31 20:28:35 +01:00
thread_pthread.h [3.14] gh-157415: Fix data race in pthread wrapper (#157430) (#159547) 2026-10-16 15:55:12 +00:00
thread_pthread_stubs.h gh-125161: return non zero value in pthread_self on wasi (#125303) 2024-10-13 20:59:41 +05:30
tier2_engine.md
traceback.c [3.14] gh-113318: Fix @getter and @setter in Argument Clinic (GH-155778) (GH-156011) 2026-08-18 13:09:24 +00:00
tracemalloc.c [3.14] gh-144763: Fix race conditions in tracemalloc (#144779) (#144965) 2026-02-18 20:55:38 +01:00
uniqueid.c gh-128923: Use zero to indicate unassigned unique id (#128925) 2025-01-17 16:42:27 +01:00
vm-state.md gh-133079: Remove Py_C_RECURSION_LIMIT & PyThreadState.c_recursion_remaining (GH-133080) 2025-04-29 12:56:20 +02:00

Miscellaneous source files for the main Python shared library