]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Ken Jin [Thu, 23 Oct 2025 18:03:20 +0000 (19:03 +0100)]
debug changes
Ken Jin [Thu, 23 Oct 2025 01:02:55 +0000 (02:02 +0100)]
fix test
Ken Jin [Thu, 23 Oct 2025 00:53:47 +0000 (01:53 +0100)]
Close loops properly, don't trace into nested loops
Ken Jin [Tue, 21 Oct 2025 21:36:15 +0000 (22:36 +0100)]
Clean up the cases generator
Ken Jin [Tue, 21 Oct 2025 21:11:44 +0000 (22:11 +0100)]
Clean up macros
Ken Jin [Tue, 21 Oct 2025 20:34:48 +0000 (21:34 +0100)]
restore optimizer code
Ken Jin [Tue, 21 Oct 2025 20:30:07 +0000 (21:30 +0100)]
Fix naming of things
Ken Jin [Tue, 21 Oct 2025 20:21:29 +0000 (21:21 +0100)]
First half of reviews
Ken Jin [Mon, 20 Oct 2025 23:53:41 +0000 (00:53 +0100)]
Revert remedies against trace explosion
Ken Jin [Mon, 20 Oct 2025 23:52:56 +0000 (00:52 +0100)]
Fix a bug with where the executors get inserted during EXTENDED_ARG
Ken Jin [Mon, 20 Oct 2025 20:48:00 +0000 (21:48 +0100)]
lint
Ken Jin [Mon, 20 Oct 2025 20:45:20 +0000 (21:45 +0100)]
remedies against trace explosion
Ken Jin [Mon, 20 Oct 2025 16:18:43 +0000 (17:18 +0100)]
make mypy happy
Ken Jin [Mon, 20 Oct 2025 16:16:25 +0000 (17:16 +0100)]
Specialize on deopt when tracing
Ken Jin [Mon, 20 Oct 2025 02:51:41 +0000 (03:51 +0100)]
Close loops
Ken Jin [Mon, 20 Oct 2025 01:52:00 +0000 (02:52 +0100)]
Trace through BINARY_OP_SUBSCR_GETITEM
Ken Jin [Mon, 20 Oct 2025 01:37:40 +0000 (02:37 +0100)]
Support BINARY_OP_INPLACE_ADD_UNICODE
Ken Jin [Mon, 20 Oct 2025 01:31:30 +0000 (02:31 +0100)]
revert last 2 changes
Ken Jin [Sun, 19 Oct 2025 23:43:35 +0000 (00:43 +0100)]
Don't JIT short traces except if they end in a loop
Ken Jin [Sun, 19 Oct 2025 23:35:48 +0000 (00:35 +0100)]
Handle unstable branches
Ken Jin [Sun, 19 Oct 2025 19:26:01 +0000 (20:26 +0100)]
Handle EXTENDED_ARG
Ken Jin [Sun, 19 Oct 2025 15:06:03 +0000 (16:06 +0100)]
Increase uop length to compensate
Ken Jin [Sun, 19 Oct 2025 14:51:26 +0000 (15:51 +0100)]
Fix _CHECK_PERIODIC insertion
Ken Jin [Sun, 19 Oct 2025 13:53:33 +0000 (14:53 +0100)]
Turn off tracing on dynamic exit
Ken Jin [Sat, 18 Oct 2025 23:35:34 +0000 (00:35 +0100)]
Fix lltrace on jit debug builds
Ken Jin [Sat, 18 Oct 2025 23:20:49 +0000 (00:20 +0100)]
Merge remote-tracking branch 'upstream/main' into tracing_jit
Shamil [Sat, 18 Oct 2025 23:20:04 +0000 (02:20 +0300)]
gh-139269: Fix unaligned memory access in JIT code patching functions (GH-139271)
* Use memcpy for patching values instead of direct assignment
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Ken Jin [Sat, 18 Oct 2025 22:26:00 +0000 (23:26 +0100)]
more cleanup to fix CI
Ken Jin [Sat, 18 Oct 2025 22:21:36 +0000 (23:21 +0100)]
fix linter and mypy?
Ken Jin [Sat, 18 Oct 2025 22:17:27 +0000 (23:17 +0100)]
make mypy happy
Ken Jin [Sat, 18 Oct 2025 22:12:55 +0000 (23:12 +0100)]
restore non-jit builds
Ken Jin [Sat, 18 Oct 2025 22:04:11 +0000 (23:04 +0100)]
Disable windows CI for now, simplify
Ken Jin [Sat, 18 Oct 2025 22:01:47 +0000 (23:01 +0100)]
Merge remote-tracking branch 'upstream/main' into tracing_jit
blurb-it[bot] [Sat, 18 Oct 2025 21:50:49 +0000 (21:50 +0000)]
📜🤖 Added by blurb_it.
Ken Jin [Sat, 18 Oct 2025 21:28:24 +0000 (22:28 +0100)]
Cleanup
Ken Jin [Sat, 18 Oct 2025 21:08:20 +0000 (22:08 +0100)]
refactor a little
Ken Jin [Sat, 18 Oct 2025 21:01:15 +0000 (22:01 +0100)]
Cleanup warnings
Ken Jin [Sat, 18 Oct 2025 21:00:28 +0000 (22:00 +0100)]
Remove unused buffer
Ken Jin [Sat, 18 Oct 2025 20:59:06 +0000 (21:59 +0100)]
Whole test suite passing
Ken Jin [Sat, 18 Oct 2025 20:56:18 +0000 (21:56 +0100)]
Cleanup, bugfixes to sys trace
Ken Jin [Sat, 18 Oct 2025 20:20:12 +0000 (21:20 +0100)]
Separate the tracer out into its own file
Ken Jin [Sat, 18 Oct 2025 19:59:07 +0000 (20:59 +0100)]
fix tracing completely
Ken Jin [Sat, 18 Oct 2025 19:54:56 +0000 (20:54 +0100)]
Fix tracing
Ken Jin [Sat, 18 Oct 2025 19:13:19 +0000 (20:13 +0100)]
invalidate freed code/function objects used for global promotion
Parham MohammadAlizadeh [Sat, 18 Oct 2025 18:47:04 +0000 (19:47 +0100)]
gh-128571: Document UTF-16/32 native byte order (#139974)
Closes #128571
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Frost Ming [Sat, 18 Oct 2025 14:35:24 +0000 (22:35 +0800)]
gh-140251: colorize import statement formatting in asyncio console (#140252)
Kumar Aditya [Sat, 18 Oct 2025 11:06:58 +0000 (16:36 +0530)]
gh-140067: Fix memory leak in sub-interpreter creation (#140111) (#140261)
Fix memory leak in sub-interpreter creation caused by overwriting of the previously used `_malloced` field. Now the pointer is stored in the first word of the memory block to avoid it being overwritten accidentally.
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Shamil [Sat, 18 Oct 2025 11:01:53 +0000 (14:01 +0300)]
gh-140257: fix data race on eval_breaker during finalization (#140265)
Serhiy Storchaka [Sat, 18 Oct 2025 10:55:26 +0000 (13:55 +0300)]
gh-140241: Fix documentation for the registry parameter of warnings.warn_explicit() (GH-140242)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Serhiy Storchaka [Sat, 18 Oct 2025 10:54:40 +0000 (13:54 +0300)]
Move the NEWS entry for gh-140272 to the correct place (GH-140290)
Shamil [Sat, 18 Oct 2025 09:27:58 +0000 (12:27 +0300)]
gh-140272: Fix memory leak in _gdbm.gdbm.clear() (GH-140274)
Barney Gale [Sat, 18 Oct 2025 01:13:25 +0000 (02:13 +0100)]
GH-139174: Prepare `pathlib.Path.info` for new methods (part 2) (#140155)
Merge `_Info`, `_StatResultInfo` and `_DirEntryInfo` into a single `_Info`
class. No other changes.
This will allow us to use a cached `os.stat()` result from our upcoming
`_Info.stat()` method even when we have a backing `os.DirEntry`.
Ken Jin [Sat, 18 Oct 2025 00:13:28 +0000 (01:13 +0100)]
Restore the optimizer fully
Ken Jin [Fri, 17 Oct 2025 23:47:16 +0000 (00:47 +0100)]
fix a few tests and their exposed bugs
Barney Gale [Fri, 17 Oct 2025 21:57:51 +0000 (22:57 +0100)]
GH-133789: Fix unpickling of pathlib objects pickled in Python 3.13 (#133831)
In Python 3.13 (but not 3.12 or 3.14), pathlib classes are defined in
`pathlib._local` rather than `pathlib`. In hindsight this was a mistake,
but it was difficult to predict how the abstract/local split would pan out.
In this patch we re-introduce `pathlib._local` as a stub module that
re-exports the classes from `pathlib`. This allows path objects pickled in
3.13 to be unpicked in 3.14+
Ayappan Perumal [Fri, 17 Oct 2025 17:40:16 +0000 (23:10 +0530)]
gh-140239: Check statx availability only on Linux (#140249)
Ken Jin [Fri, 17 Oct 2025 17:22:59 +0000 (18:22 +0100)]
Turn off optimizer for real, trace through init
Ken Jin [Fri, 17 Oct 2025 17:17:42 +0000 (18:17 +0100)]
turn off optimizer again (for now)
Ken Jin [Fri, 17 Oct 2025 17:09:37 +0000 (18:09 +0100)]
Delete hello.gvz
Ken Jin [Fri, 17 Oct 2025 17:09:25 +0000 (18:09 +0100)]
Re-enable the optimizer
Ken Jin [Fri, 17 Oct 2025 16:21:57 +0000 (17:21 +0100)]
Properly record the predicted ops
Ken Jin [Fri, 17 Oct 2025 16:06:46 +0000 (17:06 +0100)]
fix bug with predicted stuff
Serhiy Storchaka [Fri, 17 Oct 2025 11:21:39 +0000 (14:21 +0300)]
gh-135801: Add tests for filtering warnings by module (GH-140240)
Tomasz Dądela [Fri, 17 Oct 2025 10:32:02 +0000 (12:32 +0200)]
gh-133059: Update documentation of preallocated integer range in `long.rst` (GH-140231)
Mark Shannon [Fri, 17 Oct 2025 10:26:17 +0000 (11:26 +0100)]
GH-135904: Implement assembler optimization for AArch64. (GH-139855)
Ken Jin [Fri, 17 Oct 2025 10:02:31 +0000 (11:02 +0100)]
patch the graphviz dump
Albert N [Fri, 17 Oct 2025 08:48:53 +0000 (11:48 +0300)]
gh-133059: Fix `Tools/build/deepfreeze.py` for new nsmallposints (#139906)
Stan Ulbrych [Fri, 17 Oct 2025 06:55:12 +0000 (07:55 +0100)]
Standardize translation of `Doc/bugs.rst` (GH-137449)
Ken Jin [Fri, 17 Oct 2025 00:57:11 +0000 (01:57 +0100)]
Delete out.txt
Ken Jin [Fri, 17 Oct 2025 00:23:33 +0000 (01:23 +0100)]
comment out debugging
Ken Jin [Thu, 16 Oct 2025 23:24:54 +0000 (00:24 +0100)]
fix recursive tracing
Ken Jin [Thu, 16 Oct 2025 21:01:51 +0000 (22:01 +0100)]
cleanup a little
Ken Jin [Thu, 16 Oct 2025 20:59:01 +0000 (21:59 +0100)]
Just punt on large opargs for now
Alper [Thu, 16 Oct 2025 18:27:51 +0000 (11:27 -0700)]
gh-116738: test `uuid` module thread safety in free-threading (#140068)
Tan Long [Thu, 16 Oct 2025 17:27:00 +0000 (01:27 +0800)]
Remove duplicate words in the documentation (#140221)
Maurycy Pawłowski-Wieroński [Thu, 16 Oct 2025 17:24:34 +0000 (19:24 +0200)]
gh-140149: Use PyBytesWriter in _build_concatenated_bytes() (#140150)
Use PyBytesWriter in action_helpers.c _build_concatenated_bytes().
3x faster bytes concat in the parser.
Co-authored-by: Victor Stinner <vstinner@python.org>
wangxiaolei [Thu, 16 Oct 2025 15:02:38 +0000 (23:02 +0800)]
gh-140078: fix typo in tkinter docs (#140081)
Remove extraneous word.
bzoracler [Thu, 16 Oct 2025 12:30:36 +0000 (01:30 +1300)]
gh-138859: Account for `ParamSpec` defaults that are not lists … (#138868)
Jeffrey Bosboom [Thu, 16 Oct 2025 11:40:47 +0000 (04:40 -0700)]
gh-83714: Check for struct statx.stx_atomic_write_unit_max_opt in configure (#140185)
stx_atomic_write_unit_max_opt was added in Linux 6.16, but is controlled
by the STATX_WRITE_ATOMIC mask bit added in Linux 6.11. That's safe at
runtime because all kernels clear the reserved space in struct statx and
zero is a valid value for stx_atomic_write_unit_max_opt, and it avoids
allocating another mask bit, which are a limited resource. But it also
means the kernel headers don't provide a way to check whether
stx_atomic_write_unit_max_opt exists, so add a configure check.
Petr Viktorin [Thu, 16 Oct 2025 11:04:04 +0000 (13:04 +0200)]
gh-139817: Fix refleak in TypeAliasType(qualname=non_string) (GH-140197)
Victor Stinner [Thu, 16 Oct 2025 10:54:57 +0000 (12:54 +0200)]
Set type names earlier in posixmodule.c (#140168)
Stan Ulbrych [Thu, 16 Oct 2025 09:49:08 +0000 (10:49 +0100)]
gh-140170: Fix test_site with -s flag (GH-140179)
Commit
Serhiy Storchaka [Thu, 16 Oct 2025 07:54:41 +0000 (10:54 +0300)]
gh-130567: Remove optimistic allocation in locale.strxfrm() (GH-137143)
On modern systems, the result of wcsxfrm() is much larger the size of
the input string (from 4+2*n on Windows to 4+5*n on Linux for simple
ASCII strings), so optimistic allocation of the buffer of the same size
never works.
The exception is if the locale is "C" (or unset), but in that case the `wcsxfrm`
call should be fast (and calling `locale.strxfrm()` doesn't make too much
sense in the first place).
Jonathan Protzenko [Thu, 16 Oct 2025 05:25:51 +0000 (13:25 +0800)]
gh-140120: Refresh HACL* to fix an hmac memory leak (GH-140188)
This pulls an updated version of HACL* that fixes the memory leak reported in #140120, via an upstream fix.
Malcolm Smith [Wed, 15 Oct 2025 21:40:39 +0000 (22:40 +0100)]
gh-140041: Fix import of `ctypes` on Android and Cygwin when ABI flags are present (#140178)
Use sysconfig to determine the full name of libpython, rather than hardcoding
a library name that doesn't have ABI flags.
Alex Waygood [Wed, 15 Oct 2025 20:18:39 +0000 (21:18 +0100)]
gh-139817: typing docs: Fix indentation of `.. versionadded::` note for `TypeAliasType.__qualname__` (#140177)
Bartosz Sławecki [Wed, 15 Oct 2025 16:49:14 +0000 (18:49 +0200)]
gh-140141: Properly break exception chain in `importlib.metadata.Distribution.from_name` (#140142)
Mikhail Efimov [Wed, 15 Oct 2025 16:08:17 +0000 (19:08 +0300)]
gh-139817: Attribute `__qualname__` is added to `TypeAliasType` (#139919)
Victor Stinner [Wed, 15 Oct 2025 15:38:34 +0000 (17:38 +0200)]
gh-83714: Disable os.statx_result.stx_atomic_write_unit_max_opt (#140162)
Fix building on Centos 9 x86-64 buildbot.
Stan Ulbrych [Wed, 15 Oct 2025 15:15:45 +0000 (16:15 +0100)]
gh-140065: Lexical analysis: Correct note about leading zeros in floating point numbers (GH-140066)
Victor Stinner [Wed, 15 Oct 2025 14:36:49 +0000 (16:36 +0200)]
gh-140153: Fix Py_REFCNT() definition on limited C API 3.11-3.13 (#140158)
Maurycy Pawłowski-Wieroński [Wed, 15 Oct 2025 14:04:17 +0000 (16:04 +0200)]
gh-140135: Use `PyBytesWriter` in `io.RawIOBase.readall()`; 4x faster (#140139)
Pablo Galindo Salgado [Wed, 15 Oct 2025 13:59:12 +0000 (14:59 +0100)]
gh-140137: Handle empty collections in profiling.sampling (#140154)
yihong [Wed, 15 Oct 2025 13:49:55 +0000 (21:49 +0800)]
gh-140080: Clear `atexit` callbacks when memory allocation fails during finalization (GH-140103)
This fixes a regression introduced by GH-136004, in which finalization would hang while executing atexit handlers if the system was out of memory.
---------
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Sergey Miryanov [Wed, 15 Oct 2025 13:48:21 +0000 (18:48 +0500)]
gh-140061: Use `_PyObject_IsUniquelyReferenced()` to check if objects are uniquely referenced (gh-140062)
The previous `Py_REFCNT(x) == 1` checks can have data races in the free
threaded build. `_PyObject_IsUniquelyReferenced(x)` is a more conservative
check that is safe in the free threaded build and is identical to
`Py_REFCNT(x) == 1` in the default GIL-enabled build.
Jeffrey Bosboom [Wed, 15 Oct 2025 13:44:08 +0000 (06:44 -0700)]
gh-83714: Implement os.statx() function (#139178)
Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Bénédikt Tran [Wed, 15 Oct 2025 13:18:07 +0000 (15:18 +0200)]
gh-139327: consolidate `sqlite3_finalize` and `sqlite3_reset` usages (GH-139329)
Victor Stinner [Wed, 15 Oct 2025 12:54:18 +0000 (14:54 +0200)]
gh-129813: Enhance PyBytesWriter documentation (#140152)
Co-authored-by: Antoine Pitrou <pitrou@free.fr>
Stan Ulbrych [Wed, 15 Oct 2025 11:18:48 +0000 (12:18 +0100)]
gh-76007: Deprecate `zlib.__version__` attribute (#140130)
Cody Maloney [Wed, 15 Oct 2025 02:39:17 +0000 (19:39 -0700)]
gh-129559: Remove extra dot in bytearray.resize AC (#140134)