Yongtao Huang
de22e718bb
Remove redundant pycore_optimizer.h includes ( #143184 )
...
`pycore_optimizer.h` was included redundantly in
Objects/frameobject.c and Python/instrumentation.c.
Both includes are unnecessary and can be safely removed.
No functional change.
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
2025-12-26 11:11:11 +00:00
László Kiss Kollár
888d101445
gh-138122: Remove default duration for statistical profiling ( #143174 )
...
Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com>
2025-12-25 19:21:16 +00:00
Hugo van Kemenade
ea3fd785cb
gh-142927: Tachyon: Fix contrast ratio in top panel ( #142936 )
2025-12-25 18:28:13 +00:00
ivonastojanovic
59ede34c8c
gh-138122: Convert GIL/GC/exception stats from tiles to progress bars ( #143177 )
2025-12-25 18:22:54 +00:00
Yongtao Huang
b9a4806430
gh-143164: Fix incorrect error message for ctypes bitfield overflow (GH-143165)
...
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
2025-12-25 19:08:43 +02:00
Peter Bierma
8611f74e08
gh-142975: During GC, mark frozen objects with a merged zero refcount for destruction (GH-143156)
2025-12-25 16:31:41 +00:00
Yongtao Huang
579c5b496b
gh-143145: Fix possible reference leak in ctypes _build_result() (GH-143131)
...
The result tuple was leaked if __ctypes_from_outparam__() failed for any item.
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
2025-12-25 14:24:25 +00:00
Hauke D
8d46f961c3
gh-143103: Added pad parameter to base64.z85encode() (GH-143106)
...
This makes it analogous to a85encode() and b85encode() and allows the
user to more easily meet the Z85 specification, which requires input
lengths to be a multiple of 4.
2025-12-25 13:34:44 +02:00
kaushal trivedi
86d904588e
gh-143004: Fix possible use-after-free in collections.Counter.update() (GH-143044)
...
This happened when the Counter was mutated when incrementing
the value for an existing key.
2025-12-25 09:13:39 +00:00
Ken Jin
cf6758ff9e
gh-143092: Make CALL_LIST_APPEND and BINARY_OP_INPLACE_ADD_UNICODE normal instructions (GH-143124)
...
These super instructions need many special cases in the interpreter, specializer, and JIT. It's best we convert them to normal instructions.
2025-12-24 22:03:00 +00:00
Sam Gross
594a4631c3
gh-120321: Fix TSan reported races on gi_frame_state (gh-143128)
2025-12-24 16:10:43 -05:00
Cody Maloney
305aff0a66
Move News for gh-142560 to Core and Builtins (GH-143154)
2025-12-24 21:03:10 +02:00
R. David Murray
7342890ed7
gh-142517: Fix typo in news item. ( #143150 )
2025-12-24 13:14:23 -05:00
Stan Ulbrych
3509fa5a12
gh-143135: Fix sys.flags.inspect when PYTHONINSPECT=0 (GH-143136)
2025-12-24 19:56:59 +02:00
Tom Kuson
84b7e6970f
gh-140717: Add exc_text to LogRecord attributes table (GH-140718)
2025-12-24 17:30:20 +00:00
Pablo Galindo Salgado
7c44f37170
gh-138122: Extend binary profiling format with full source location and opcode ( #143088 )
...
Co-authored-by: Stan Ulbrych <stan@ulbrych.org>
2025-12-24 16:15:11 +00:00
R. David Murray
1e17ccd030
Correctly fold unknown-8bit originating from encoded words. ( #142517 )
...
The unknown-8bit trick was designed to deal with unknown bytes in an
ASCII message, and it works fine for that. However, I also tried to
extend it to handle bytes that can't be decoded using the charset
specified in an encoded word, and there it fails because there can be
other non-ASCII characters that were *successfully* decoded. The fix is
simple: do the unknown-8bit encoding using the utf-8 codec. This is
especially appropriate since anyone trying to do recovery on an unknown
byte string will probably attempt utf-8 first.
2025-12-24 09:14:39 -05:00
László Kiss Kollár
d4dc3dd9aa
gh-138122: Replace --interval with --sampling-rate ( #143085 )
2025-12-24 13:46:33 +00:00
Sam Gross
e8e044eda3
gh-143100: Fix memcpy data race in setobject.c (gh-143127)
2025-12-24 08:02:19 -05:00
Sam Gross
4ee6929d60
gh-143121: Skip test that leak threads under TSan (gh-143125)
2025-12-24 08:02:02 -05:00
Sam Gross
57937a8e5e
gh-142145: Avoid timing measurements in quadratic behavior test (gh-143105)
...
Count the number of Element attribute accesses as a proxy for work done.
With double the amount of work, a ratio of 2.0 indicates linear scaling
and 4.0 quadratic scaling. Use 3.2 as an intermediate threshold.
2025-12-24 08:01:45 -05:00
Pablo Galindo Salgado
9af7a20cae
gh-136186: Fix flaky tests in test_external_inspection ( #143110 )
2025-12-24 12:38:17 +00:00
Diego Russo
fc2f0fea6b
JIT: Move executor to a register ( #143072 )
2025-12-24 09:44:16 +00:00
Sam Gross
50ecd6b880
gh-143108: Don't instrument faulthandler.c for TSan ( #143109 )
...
The dumping of tracebacks has data races and that's okay (it's best
effort).
2025-12-24 02:12:55 +01:00
Hai Zhu
cc48bf0fde
gh-134584: Eliminate redundant refcounting from _BINARY_OP_SUBSCR_TUPLE_INT (GH-143094)
2025-12-23 21:47:12 +00:00
Sam Gross
cbe0cb779a
gh-143100: Add temporary suppression for set_swap_bodies (gh-143114)
2025-12-23 15:52:59 -05:00
AN Long
c2202a7e66
gh-109263: Start process from spawn context in multiprocessing no longer have side effect (GH-135813)
2025-12-23 19:28:32 +00:00
Diego Russo
450e836aef
JIT: don't leak shim memory when shutting down the interpreter ( #142984 )
2025-12-23 17:50:00 +00:00
Mark Shannon
20aeb3a463
GH-143026: Fix assertion error in executor management. (GH-143104)
2025-12-23 17:19:34 +00:00
Tomas R.
25c294b6ea
gh-134584: Eliminate redundant refcounting from _CALL_TYPE_1 (GH-135818)
2025-12-23 17:01:10 +00:00
Ken Jin
c8b80f5e23
gh-134584: Add another contributor to whats new 3.15 (GH-143107)
...
Add another contributor to whats new 3.15
2025-12-23 16:47:46 +00:00
Hugo van Kemenade
f783cc37eb
Update pre-commit with zizmor and Ruff fixes ( #143095 )
2025-12-23 17:51:02 +02:00
Victor Stinner
6536fab194
gh-130796: Undeprecate locale.getdefaultlocale() ( #143069 )
2025-12-23 16:31:10 +01:00
Ken Jin
c4ab024530
gh-142448: Disable JIT tracing when monitoring is enabled (GH-142842)
2025-12-23 11:27:23 +00:00
Pablo Galindo Salgado
28da1fb7c0
gh-142368: Fix transient error handling in inspection tests ( #143093 )
2025-12-23 11:01:32 +00:00
Pablo Galindo Salgado
81c8eb85e1
gh-138122: Add blocking mode for accurate stack traces in Tachyon ( #142998 )
2025-12-23 10:49:47 +00:00
Stan Ulbrych
f9704f1d84
gh-84232: Fix pydoc docs.python.org link generation ( #139995 )
...
Co-authored-by: Éric <merwok@netwok.org>
2025-12-23 10:29:58 +02:00
Zheng Yu
a273bc99d2
gh-122431: Correct the non-negative error message in readline.append_history_file (GH-143075)
...
"positive" -> "non-negative", since zero is included.
2025-12-22 23:35:23 -05:00
Hai Zhu
5b5ee3c4bf
gh-134584: Eliminate redundant refcounting from _LOAD_ATTR_WITH_HINT (GH-143062)
...
Eliminate redundant refcounting from _LOAD_ATTR_WITH_HINT
2025-12-23 00:28:08 +00:00
Pablo Galindo Salgado
9e51301234
gh-138122: Allow tachyon to write and read binary output ( #142730 )
2025-12-22 23:57:20 +00:00
Ken Jin
714037ba84
gh-139922: Add tail call for MSVC for whats new in 3.15 (GH-143087)
2025-12-22 23:56:26 +00:00
Chris Eibl
be3c131640
GH-139922: Tail calling for MSVC (VS 2026) (GH-143068)
...
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Brandt Bucher <brandt@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-12-22 23:01:34 +00:00
Ken Jin
665d2807a0
gh-139109: Add terminator to JIT code when halting due to invalid dependencies ( #143033 )
...
* Add terminator to JIT code when halting due to invalid dependencies
* 📜 🤖 Added by blurb_it.
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2025-12-22 20:54:47 +00:00
Stan Ulbrych
3c0888b25b
gh-89152: Note truth testing exception in stdtypes.rst ( #137640 )
...
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2025-12-22 11:36:44 -08:00
AZero13
a88d1b8dab
gh-143010: Prevent a TOCTOU issue by only calling open once ( #143011 )
...
* gh-143010: Prevent a TOCTOU issue by gh-143010: Prevent a TOCTOU issue by only calling open once
RDM: per AZero13's research the 'x' option did not exist when this code was written, This
modernization can thus drop the fd trick in _create_carefully and just use open with 'x' to achieve the same goal more securely.
Co-authored-by: sobolevn <mail@sobolevn.me>
2025-12-22 12:48:11 -05:00
Chris Eibl
700e9fad70
GH-142513: fix missing return in executor_clear (GH-143073)
...
fix missing return in executor_clear
2025-12-22 17:10:52 +00:00
Kumar Aditya
487e91c120
gh-129069: fix more thread safety issues in list ( #143019 )
2025-12-22 21:45:28 +05:30
Kumar Aditya
e728b006de
gh-143057: avoid locking in tracemalloc C-APIs when it is not enabled ( #143065 )
2025-12-22 21:08:07 +05:30
Ken Jin
9ded3dd4e9
gh-142476: Fix Windows crashing with JIT (GH-143021)
...
Fix Windows crashing with JIT
2025-12-22 14:57:13 +00:00
Hugo van Kemenade
ff7f62eb23
gh-142927: Tachyon: Comma separate thousands and fix singular/plurals ( #142934 )
2025-12-22 14:15:57 +00:00