cpython/Python
Victor Stinner 36c5e3bcc2
gh-128679: Redesign tracemalloc locking (#128888)
* Use TABLES_LOCK() to protect 'tracemalloc_config.tracing'.
* Hold TABLES_LOCK() longer while accessing tables.
* tracemalloc_realloc() and tracemalloc_free() no longer
  remove the trace on reentrant call.
* _PyTraceMalloc_Stop() unregisters _PyTraceMalloc_TraceRef().
* _PyTraceMalloc_GetTraces() sets the reentrant flag.
* tracemalloc_clear_traces_unlocked() sets the reentrant flag.
2025-01-15 20:22:44 +00:00
..
clinic gh-128384: Add locking to warnings.py. (gh-128386) 2025-01-14 11:43:42 -08:00
frozen_modules
_warnings.c gh-128384: Add locking to warnings.py. (gh-128386) 2025-01-14 11:43:42 -08:00
asdl.c
asm_trampoline.S
assemble.c
ast.c
ast_opt.c
ast_unparse.c gh-125268: Use static string for "1e309" in AST (#125272) 2024-10-10 16:21:29 -04:00
bltinmodule.c gh-111178: fix UBSan failures in Python/bltinmodule.c (GH-128235) 2025-01-10 11:51:24 +01:00
bootstrap_hash.c
brc.c
bytecodes.c gh-115999: Specialize LOAD_ATTR for instance and class receivers in free-threaded builds (#128164) 2025-01-14 11:56:11 -08:00
ceval.c gh-128717: Stop-the-world when setting the recursion limit (#128741) 2025-01-12 18:34:30 +05:30
ceval_gil.c gh-114940: Add _Py_FOR_EACH_TSTATE_UNLOCKED(), and Friends (gh-127077) 2024-11-21 11:08:38 -07:00
ceval_macros.h GH-128375: Better instrument for FOR_ITER (GH-128445) 2025-01-06 17:54:47 +00:00
codecs.c
codegen.c GH-128533: Add NOT_TAKEN instruction after bytecode optimization. (GH-128554) 2025-01-06 22:01:07 +00:00
compile.c gh-127274: Defer nested methods (#128012) 2024-12-19 13:03:14 -08:00
condvar.h
config_common.h
context.c gh-111178: fix UBSan failures in Python/context.c (GH-128242) 2025-01-08 14:52:27 +01:00
critical_section.c gh-114203: Optimise simple recursive critical sections (#128126) 2024-12-23 13:31:33 +01:00
crossinterp.c gh-127165: Disallow embedded NULL characters in _interpreters (#127199) 2024-12-01 06:33:23 +00:00
crossinterp_data_lookup.h gh-76785: Improved Subinterpreters Compatibility with 3.12 (2/2) (gh-126707) 2024-11-12 10:41:51 -07:00
crossinterp_exceptions.h gh-76785: Minor Cleanup of Exception-related Cross-interpreter State (gh-126602) 2024-11-11 14:49:41 -07:00
dtoa.c
dup2.c
dynamic_annotations.c
dynload_hpux.c
dynload_shlib.c
dynload_stub.c
dynload_win.c
emscripten_signal.c
emscripten_trampoline.c gh-128627: Emscripten: Use wasm-gc based call adaptor if available (#128628) 2025-01-13 07:09:39 +08:00
errors.c gh-127350: Add Py_fopen() and Py_fclose() functions (#127821) 2025-01-06 12:43:09 +00:00
executor_cases.c.h gh-115999: Specialize LOAD_ATTR for instance and class receivers in free-threaded builds (#128164) 2025-01-14 11:56:11 -08:00
fileutils.c gh-127350: Add Py_fopen() and Py_fclose() functions (#127821) 2025-01-06 12:43:09 +00:00
flowgraph.c Remove unnecessary LIST_TO_TUPLE conversions (GH-126558) 2025-01-08 09:00:11 -08:00
formatter_unicode.c
frame.c Remove asserts that confuse enum _framestate with enum _frameowner (GH-124148) 2025-01-02 16:55:33 +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 gh-126491: Revert "GH-126491: Lower heap size limit with faster marking (GH-127519)" (GH-127770) 2024-12-10 11:53:56 +01:00
gc_free_threading.c gh-128807: Add marking phase for free-threaded cyclic GC (gh-128808) 2025-01-15 11:27:28 -08:00
gc_gil.c
generated_cases.c.h gh-115999: Specialize LOAD_ATTR for instance and class receivers in free-threaded builds (#128164) 2025-01-14 11:56:11 -08:00
getargs.c gh-122943: Add the varpos parameter in _PyArg_UnpackKeywords (GH-126564) 2024-11-08 14:23:50 +02: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 Make the Python CLI error message style more consistent (GH-128129) 2025-01-11 11:17:35 +02:00
getplatform.c
getversion.c
hamt.c gh-111178: fix UBSan failures in Python/hamt.c (GH-128247) 2025-01-08 14:50:40 +01:00
hashtable.c
import.c gh-127350: Add Py_fopen() and Py_fclose() functions (#127821) 2025-01-06 12:43:09 +00:00
importdl.c
index_pool.c gh-115999: Implement thread-local bytecode and enable specialization for BINARY_OP (#123926) 2024-11-04 11:13:32 -08:00
initconfig.c gh-126925: Modify how iOS test results are gathered (#127592) 2024-12-09 13:28:57 +08:00
instruction_sequence.c
instrumentation.c GH-128375: Better instrument for FOR_ITER (GH-128445) 2025-01-06 17:54:47 +00:00
interpconfig.c
intrinsics.c
jit.c GH-126195: Use M1 JIT memory protection APIs (GH-126196) 2024-11-11 17:20:10 -08:00
legacy_tracing.c gh-125604: Move _Py_AuditHookEntry, etc. Out of pycore_runtime.h (gh-125605) 2024-10-18 09:26:08 -06:00
lock.c gh-125139: use _PyRecursiveMutex in _thread.RLock (#125144) 2024-10-14 14:06:31 +05:30
marshal.c gh-125063: marshal: Add version 5, improve documentation (GH-126829) 2024-11-15 13:48:57 +01:00
modsupport.c gh-128629: Add Py_PACK_VERSION and Py_PACK_FULL_VERSION (GH-128630) 2025-01-09 11:10:28 +01:00
mysnprintf.c
mystrtoul.c
object_stack.c
opcode_targets.h GH-128685: Specialize (rather than quicken) LOAD_CONST into LOAD_CONST_[IM]MORTAL (GH-128708) 2025-01-13 10:30:28 +00:00
optimizer.c GH-128375: Better instrument for FOR_ITER (GH-128445) 2025-01-06 17:54:47 +00:00
optimizer_analysis.c gh-115999: Specialize loading attributes from modules in free-threaded builds (#127711) 2024-12-13 10:17:16 -08:00
optimizer_bytecodes.c gh-115999: Specialize LOAD_ATTR for instance and class receivers in free-threaded builds (#128164) 2025-01-14 11:56:11 -08:00
optimizer_cases.c.h gh-115999: Specialize LOAD_ATTR for instance and class receivers in free-threaded builds (#128164) 2025-01-14 11:56:11 -08:00
optimizer_symbols.c
parking_lot.c gh-76785: Improved Subinterpreters Compatibility with 3.12 (1/2) (gh-126704) 2024-11-11 15:58:46 -07:00
pathconfig.c
perf_jit_trampoline.c
perf_trampoline.c gh-115999: Enable specialization of CALL instructions in free-threaded builds (#127123) 2024-12-03 11:20:20 -08:00
preconfig.c
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 gh-128679: Redesign tracemalloc locking (#128888) 2025-01-15 20:22:44 +00:00
pymath.c
pystate.c GH-127705: Add debug mode for _PyStackRefs inspired by HPy debug mode (GH-128121) 2024-12-20 16:52:20 +00:00
pystrcmp.c
pystrhex.c
pystrtod.c gh-120026: soft deprecate Py_HUGE_VAL macro (#120027) 2024-11-01 22:04:31 +00:00
Python-ast.c gh-126105: Fix crash in ast module, when ._fields is deleted (#126115) 2024-10-29 17:42:48 +02:00
Python-tokenize.c
pythonrun.c gh-127350: Add Py_fopen() and Py_fclose() functions (#127821) 2025-01-06 12:43:09 +00:00
pytime.c
qsbr.c
README
specialize.c gh-115999: Specialize LOAD_ATTR for instance and class receivers in free-threaded builds (#128164) 2025-01-14 11:56:11 -08:00
stackrefs.c GH-127705: Add debug mode for _PyStackRefs inspired by HPy debug mode (GH-128121) 2024-12-20 16:52:20 +00:00
stdlib_module_names.h gh-126925: Modify how iOS test results are gathered (#127592) 2024-12-09 13:28:57 +08:00
structmember.c gh-117657: TSAN Fix races in PyMember_Get and PyMember_Set for C extensions (GH-123211) 2024-12-03 09:41:53 -05:00
suggestions.c
symtable.c gh-127274: Defer nested methods (#128012) 2024-12-19 13:03:14 -08:00
sysmodule.c gh-127350: Add Py_fopen() and Py_fclose() functions (#127821) 2025-01-06 12:43:09 +00:00
thread.c
thread_nt.h
thread_pthread.h
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 gh-123967: Fix faulthandler for trampoline frames (#127329) 2024-11-27 16:14:49 +01:00
tracemalloc.c gh-128679: Redesign tracemalloc locking (#128888) 2025-01-15 20:22:44 +00:00
uniqueid.c gh-124218: Use per-thread reference counting for globals and builtins (#125713) 2024-10-21 12:51:29 -04:00
vm-state.md

Miscellaneous source files for the main Python shared library