[Python-checkins] gh-141498: Change backoff counter to use prime numbers instead of powers of 2 (GH-141591)

2025-11-21 Thread markshannon
https://github.com/python/cpython/commit/a3b78a3adecf794dc576404b14ed3f2c8401fdf1 commit: a3b78a3adecf794dc576404b14ed3f2c8401fdf1 branch: main author: Mikhail Efimov committer: markshannon date: 2025-11-21T17:00:25Z summary: gh-141498: Change backoff counter to use prime numbers instead of

[Python-checkins] GH-139653: Only raise an exception (or fatal error) when the stack pointer is about to overflow the stack. (GH-141711)

2025-11-19 Thread markshannon
https://github.com/python/cpython/commit/c25a070759952b13f97ecc37ca2991c2669aee47 commit: c25a070759952b13f97ecc37ca2991c2669aee47 branch: main author: Mark Shannon committer: markshannon date: 2025-11-19T10:16:24Z summary: GH-139653: Only raise an exception (or fatal error) when the stack

[Python-checkins] GH-139109: Support switch/case dispatch with the tracing interpreter. (GH-141703)

2025-11-18 Thread markshannon
https://github.com/python/cpython/commit/b420f6be53efdf40f552c94f19a7ce85f882b5e2 commit: b420f6be53efdf40f552c94f19a7ce85f882b5e2 branch: main author: Mark Shannon committer: markshannon date: 2025-11-18T13:31:48Z summary: GH-139109: Support switch/case dispatch with the tracing interpreter

[Python-checkins] gh-140373: Correctly emit `PY_UNWIND` event when generator is closed (GH-140767)

2025-10-31 Thread markshannon
https://github.com/python/cpython/commit/d17f28fed5cfbb400f8dd9826c67d87c65f261a0 commit: d17f28fed5cfbb400f8dd9826c67d87c65f261a0 branch: main author: Mikhail Efimov committer: markshannon date: 2025-10-31T10:09:22Z summary: gh-140373: Correctly emit `PY_UNWIND` event when generator is closed

[Python-checkins] gh-138050: [WIP] JIT - Streamline MAKE_WARM - move coldness check to executor creation (GH-138240)

2025-10-27 Thread markshannon
https://github.com/python/cpython/commit/1753ccb43223b0a1054aaca31353e3778d2b12a1 commit: 1753ccb43223b0a1054aaca31353e3778d2b12a1 branch: main author: alm committer: markshannon date: 2025-10-27T16:37:37Z summary: gh-138050: [WIP] JIT - Streamline MAKE_WARM - move coldness check to executor

[Python-checkins] gh-135125: Fix Py_STACKREF_DEBUG build (GH-139475)

2025-10-23 Thread markshannon
https://github.com/python/cpython/commit/918a9ac9f403c0a79003d0f97c527e444c99456d commit: 918a9ac9f403c0a79003d0f97c527e444c99456d branch: main author: Mikhail Efimov committer: markshannon date: 2025-10-23T17:00:23+01:00 summary: gh-135125: Fix Py_STACKREF_DEBUG build (GH-139475) * Use the

[Python-checkins] GH-135904: JIT compiler: Support 19 bit branch instructions on AArch64 for Mach-O. (GH-140453)

2025-10-23 Thread markshannon
https://github.com/python/cpython/commit/61e759c2ee521ccf817293d6150094b618fbeee5 commit: 61e759c2ee521ccf817293d6150094b618fbeee5 branch: main author: Mark Shannon committer: markshannon date: 2025-10-23T16:45:57+01:00 summary: GH-135904: JIT compiler: Support 19 bit branch instructions on

[Python-checkins] [3.14] GH-139951: Fix major GC performance regression. Backport of GH-140262 (GH-140447)

2025-10-23 Thread markshannon
https://github.com/python/cpython/commit/d1a434f7b211b7061883b8cf4c8687cf00e0c2c7 commit: d1a434f7b211b7061883b8cf4c8687cf00e0c2c7 branch: 3.14 author: Mark Shannon committer: markshannon date: 2025-10-23T15:26:58+01:00 summary: [3.14] GH-139951: Fix major GC performance regression. Backport of

[Python-checkins] GH-139193: Fix dump_stack when PYTHON_LLTRACE=4 (GH-139384)

2025-10-22 Thread markshannon
https://github.com/python/cpython/commit/a4709e525f5bc3a1719b33f52377cccb2af70278 commit: a4709e525f5bc3a1719b33f52377cccb2af70278 branch: main author: Sergey Miryanov committer: markshannon date: 2025-10-22T14:14:25+01:00 summary: GH-139193: Fix dump_stack when PYTHON_LLTRACE=4 (GH-139384

[Python-checkins] GH-139951: Fix major GC performance regression (GH-140262)

2025-10-21 Thread markshannon
https://github.com/python/cpython/commit/0c01090ad957de4625f504ce4f29df0a05d09fba commit: 0c01090ad957de4625f504ce4f29df0a05d09fba branch: main author: Mark Shannon committer: markshannon date: 2025-10-21T15:22:15+01:00 summary: GH-139951: Fix major GC performance regression (GH-140262

[Python-checkins] gh-139951: Test on GC collection disabled if threshold is zero (GH-140304)

2025-10-20 Thread markshannon
https://github.com/python/cpython/commit/5d0abb69715b9638f26c896444643055ec2ef038 commit: 5d0abb69715b9638f26c896444643055ec2ef038 branch: main author: Mikhail Efimov committer: markshannon date: 2025-10-20T11:45:07+01:00 summary: gh-139951: Test on GC collection disabled if threshold is zero

[Python-checkins] Correct a simple NULL-check in `optimizer.c`'s `uop_item()` (GH-140069)

2025-10-18 Thread markshannon
https://github.com/python/cpython/commit/3490a99046078e4f9df7ac7570f62a0181bb3b89 commit: 3490a99046078e4f9df7ac7570f62a0181bb3b89 branch: main author: Maurycy Pawłowski-Wieroński <[email protected]> committer: markshannon date: 2025-10-14T16:18:20+01:00 summary: Cor

[Python-checkins] GH-135904: Implement assembler optimization for AArch64. (GH-139855)

2025-10-18 Thread markshannon
https://github.com/python/cpython/commit/f1883852ed4cd1923e619e71437641d06873503d commit: f1883852ed4cd1923e619e71437641d06873503d branch: main author: Mark Shannon committer: markshannon date: 2025-10-17T11:26:17+01:00 summary: GH-135904: Implement assembler optimization for AArch64. (GH

[Python-checkins] gh-139231: Fix estimation of available stack size for recursion limit on macOS (GH-139232)

2025-09-24 Thread markshannon
https://github.com/python/cpython/commit/7016044de919fa2f14f7c0e0d15ac076b00f16a0 commit: 7016044de919fa2f14f7c0e0d15ac076b00f16a0 branch: main author: Rok Mandeljc committer: markshannon date: 2025-09-24T11:57:00+01:00 summary: gh-139231: Fix estimation of available stack size for recursion

[Python-checkins] GH-138378: Move globals-to-consts pass into main optimizer pass (GH-138379)

2025-09-18 Thread markshannon
https://github.com/python/cpython/commit/3b8325736608b246efb18dad5626766dde276e13 commit: 3b8325736608b246efb18dad5626766dde276e13 branch: main author: Mark Shannon committer: markshannon date: 2025-09-18T10:09:59+01:00 summary: GH-138378: Move globals-to-consts pass into main optimizer pass

[Python-checkins] gh-137136: Suppress build warnings when build on Windows with --experimental-jit-interpreter (GH-137137)

2025-09-03 Thread markshannon
https://github.com/python/cpython/commit/1ff2cbbac85e59ca675cc482b5bbe1aaf1fac5b2 commit: 1ff2cbbac85e59ca675cc482b5bbe1aaf1fac5b2 branch: main author: AN Long committer: markshannon date: 2025-09-03T15:42:26+01:00 summary: gh-137136: Suppress build warnings when build on Windows with

[Python-checkins] GH-137959: Replace shim code in jitted code with a single trampoline function. (GH-137961)

2025-08-21 Thread markshannon
https://github.com/python/cpython/commit/a8d9d947843200a09c154f3bc55f4e87e35edab3 commit: a8d9d947843200a09c154f3bc55f4e87e35edab3 branch: main author: Mark Shannon committer: markshannon date: 2025-08-21T10:40:53+01:00 summary: GH-137959: Replace shim code in jitted code with a single

[Python-checkins] gh-137883: Check the recursion limit for specialized keyword argument calls (GH-137887)

2025-08-19 Thread markshannon
https://github.com/python/cpython/commit/b07a267953b35f36f433b3078b2f6c89b95c72b9 commit: b07a267953b35f36f433b3078b2f6c89b95c72b9 branch: main author: Peter Bierma committer: markshannon date: 2025-08-19T09:53:38+01:00 summary: gh-137883: Check the recursion limit for specialized keyword

[Python-checkins] Add internal doc describing the stack protection mechanism (GH137663)

2025-08-13 Thread markshannon
https://github.com/python/cpython/commit/923d68655b6730f297106b2e79c964981fc3be7c commit: 923d68655b6730f297106b2e79c964981fc3be7c branch: main author: Mark Shannon committer: markshannon date: 2025-08-13T19:04:25+01:00 summary: Add internal doc describing the stack protection mechanism

[Python-checkins] GH-132532: Add new DSL macros to better declare semantics of exits at ends of instructions/uops. (GH-137098)

2025-08-09 Thread markshannon
https://github.com/python/cpython/commit/af15e1d13ea26575afbb94b814e541586547a706 commit: af15e1d13ea26575afbb94b814e541586547a706 branch: main author: Mark Shannon committer: markshannon date: 2025-08-09T15:41:28+01:00 summary: GH-132532: Add new DSL macros to better declare semantics of exits

[Python-checkins] GH-137276: Don't mark uop as escaping if the escaping call is on an exit branch (GH-137277)

2025-08-02 Thread markshannon
https://github.com/python/cpython/commit/801cf3fcdd27d8b6dd0fdd3c39e6c996e2b2f7fa commit: 801cf3fcdd27d8b6dd0fdd3c39e6c996e2b2f7fa branch: main author: Mark Shannon committer: markshannon date: 2025-08-02T16:49:34+01:00 summary: GH-137276: Don't mark uop as escaping if the escaping call

[Python-checkins] GH-136410: Faster side exits by using a cold exit stub (GH-136411)

2025-08-01 Thread markshannon
https://github.com/python/cpython/commit/e7b55f564dbf5a788e8f6edc55ef441d6afad01c commit: e7b55f564dbf5a788e8f6edc55ef441d6afad01c branch: main author: Mark Shannon committer: markshannon date: 2025-08-01T16:26:07+01:00 summary: GH-136410: Faster side exits by using a cold exit stub (GH-136411

[Python-checkins] gh-137200: support frame lineno setter with `BRANCH_LEFT` and `BRANCH_RIGHT` events (GH-137229)

2025-07-31 Thread markshannon
https://github.com/python/cpython/commit/d18f73ae1349ed005fa05ea2d852e1ab51dbc087 commit: d18f73ae1349ed005fa05ea2d852e1ab51dbc087 branch: main author: Xuanteng Huang <[email protected]> committer: markshannon date: 2025-07-31T14:22:22+01:00 summary: gh-137200: s

[Python-checkins] GH-135106: Restrict trashcan to GC'ed objects (GH-135682)

2025-06-24 Thread markshannon
https://github.com/python/cpython/commit/2060089254f0b00199b99dd1ae83a3fb139e890c commit: 2060089254f0b00199b99dd1ae83a3fb139e890c branch: main author: Mark Shannon committer: markshannon date: 2025-06-24T09:49:38+01:00 summary: GH-135106: Restrict trashcan to GC'ed objects (GH-135682)

[Python-checkins] GH-135379: Specialize int operations for compact ints only (GH-135668)

2025-06-19 Thread markshannon
https://github.com/python/cpython/commit/9731dd2c8df3509095ea45493bcefabe732eaf60 commit: 9731dd2c8df3509095ea45493bcefabe732eaf60 branch: main author: Mark Shannon committer: markshannon date: 2025-06-19T11:10:29+01:00 summary: GH-135379: Specialize int operations for compact ints only (GH

[Python-checkins] GH-135379: Support limited scalar replacement for replicated uops in the JIT code generator. (GH-135563)

2025-06-17 Thread markshannon
https://github.com/python/cpython/commit/8dd8b5c2f0785675b9282b719256341448d49967 commit: 8dd8b5c2f0785675b9282b719256341448d49967 branch: main author: Mark Shannon committer: markshannon date: 2025-06-17T13:43:09+01:00 summary: GH-135379: Support limited scalar replacement for replicated uops

[Python-checkins] GH-135379: Remove types from stack items in code generator. (GH-135384)

2025-06-11 Thread markshannon
https://github.com/python/cpython/commit/c87b5b2cb665b6bc413bc3a13cc2d70da14dfd66 commit: c87b5b2cb665b6bc413bc3a13cc2d70da14dfd66 branch: main author: Mark Shannon committer: markshannon date: 2025-06-11T15:52:25+01:00 summary: GH-135379: Remove types from stack items in code generator. (GH

[Python-checkins] [3.14] GH-135171: Fix generator expressions one last time (hopefully) (GH-135225)

2025-06-09 Thread markshannon
https://github.com/python/cpython/commit/a5274cd2158a0c7eaa6f54b4e74f8b4e92195e5e commit: a5274cd2158a0c7eaa6f54b4e74f8b4e92195e5e branch: 3.14 author: Mark Shannon committer: markshannon date: 2025-06-09T11:04:23+01:00 summary: [3.14] GH-135171: Fix generator expressions one last time

[Python-checkins] GH-132554: Fix tier2 `FOR_ITER` implementation and optimizations (GH-135137)

2025-06-05 Thread markshannon
https://github.com/python/cpython/commit/b90ecea9e6b33dae360ed7eb2c32598f98444c4d commit: b90ecea9e6b33dae360ed7eb2c32598f98444c4d branch: main author: Mark Shannon committer: markshannon date: 2025-06-05T18:53:57+01:00 summary: GH-132554: Fix tier2 `FOR_ITER` implementation and optimizations

[Python-checkins] GH-133912: Fix `PyObject_GenericSetDict` to handle inline values (GH-134725)

2025-05-28 Thread markshannon
https://github.com/python/cpython/commit/9fbd66a93d526c49fac8e1427c25e8f7f4154e29 commit: 9fbd66a93d526c49fac8e1427c25e8f7f4154e29 branch: main author: Mark Shannon committer: markshannon date: 2025-05-28T19:03:41+01:00 summary: GH-133912: Fix `PyObject_GenericSetDict` to handle inline values

[Python-checkins] [3.13] GH-128161: Fix refleak introduced in GH-134788 (GH-134799)

2025-05-27 Thread markshannon
https://github.com/python/cpython/commit/c6af7f4bf7edc9924efbaa7352c4eb636258d072 commit: c6af7f4bf7edc9924efbaa7352c4eb636258d072 branch: 3.13 author: Mark Shannon committer: markshannon date: 2025-05-27T18:14:56+01:00 summary: [3.13] GH-128161: Fix refleak introduced in GH-134788 (GH-134799

[Python-checkins] GH-132554: "Virtual" iterators (GH-132555)

2025-05-27 Thread markshannon
https://github.com/python/cpython/commit/f6f4e8a6622d556641799b02aed7ac018d878cdc commit: f6f4e8a6622d556641799b02aed7ac018d878cdc branch: main author: Mark Shannon committer: markshannon date: 2025-05-27T15:59:45+01:00 summary: GH-132554: "Virtual" iterators (GH-132555) * FOR_ITER

[Python-checkins] [3.13] gh-128161: Remove redundant GET_ITER from list comprehension code (backport of GH-134778) (GH-134788)

2025-05-27 Thread markshannon
https://github.com/python/cpython/commit/814ac0d58789fd544855a6c1afb9d89a690a0c3b commit: 814ac0d58789fd544855a6c1afb9d89a690a0c3b branch: 3.13 author: Mark Shannon committer: markshannon date: 2025-05-27T14:12:04+01:00 summary: [3.13] gh-128161: Remove redundant GET_ITER from list

[Python-checkins] [3.14] GH-128161: Remove redundant GET_ITER from list comprehension code (GH-134778)

2025-05-27 Thread markshannon
https://github.com/python/cpython/commit/00122c8b2ab7c402daa144bb498e3a4f33254055 commit: 00122c8b2ab7c402daa144bb498e3a4f33254055 branch: 3.14 author: Mark Shannon committer: markshannon date: 2025-05-27T12:29:48+01:00 summary: [3.14] GH-128161: Remove redundant GET_ITER from list

[Python-checkins] GH-131688: Mark instructions and uops with DECREF_INPUTS as escaping. (GH-133501)

2025-05-22 Thread markshannon
https://github.com/python/cpython/commit/fbe7b87c0660e14075bc8e3c1b35b625da751316 commit: fbe7b87c0660e14075bc8e3c1b35b625da751316 branch: main author: Mark Shannon committer: markshannon date: 2025-05-22T09:54:35+01:00 summary: GH-131688: Mark instructions and uops with DECREF_INPUTS as

[Python-checkins] GH-133932: Tagged ints are heap safe (GH-134244)

2025-05-22 Thread markshannon
https://github.com/python/cpython/commit/29f6dc6323759ab89ddc33096bf075037db5de5a commit: 29f6dc6323759ab89ddc33096bf075037db5de5a branch: main author: Mark Shannon committer: markshannon date: 2025-05-22T09:54:04+01:00 summary: GH-133932: Tagged ints are heap safe (GH-134244) files: M Include

[Python-checkins] GH-133261: Make sure that the GC doesn't untrack objects in trashcan (GH-133431)

2025-05-05 Thread markshannon
https://github.com/python/cpython/commit/f554237b8ef6c60df651ac17eb0ef0c095cef185 commit: f554237b8ef6c60df651ac17eb0ef0c095cef185 branch: main author: Mark Shannon committer: markshannon date: 2025-05-05T13:44:50+01:00 summary: GH-133261: Make sure that the GC doesn't untrack objec

[Python-checkins] GH-133231: Changes to executor management to support proposed `sys._jit` module (GH-133287)

2025-05-04 Thread markshannon
https://github.com/python/cpython/commit/ac7d5ba96eb780b13877456b118ff1183bc6c4b3 commit: ac7d5ba96eb780b13877456b118ff1183bc6c4b3 branch: main author: Mark Shannon committer: markshannon date: 2025-05-04T10:05:35+01:00 summary: GH-133231: Changes to executor management to support proposed `sys

[Python-checkins] gh-132744: Check recursion limit in CALL_PY_GENERAL (GH-132746)

2025-05-02 Thread markshannon
https://github.com/python/cpython/commit/ddac7ac59a7dfa4437562b6e705e64865c3b1e9a commit: ddac7ac59a7dfa4437562b6e705e64865c3b1e9a branch: main author: Ken Jin committer: markshannon date: 2025-05-02T17:36:29+01:00 summary: gh-132744: Check recursion limit in CALL_PY_GENERAL (GH-132746) files

[Python-checkins] GH-124715: Move trashcan mechanism into `Py_Dealloc` (GH-132280)

2025-04-30 Thread markshannon
https://github.com/python/cpython/commit/44e4c479fbf2c28605bd39303b1ce484753f6177 commit: 44e4c479fbf2c28605bd39303b1ce484753f6177 branch: main author: Mark Shannon committer: markshannon date: 2025-04-30T11:37:53+01:00 summary: GH-124715: Move trashcan mechanism into `Py_Dealloc` (GH-132280

[Python-checkins] GH-132508: Use tagged integers on the evaluation stack for the last instruction offset (GH-132545)

2025-04-29 Thread markshannon
https://github.com/python/cpython/commit/ccf1b0b1c18e6d00fb919bce107f2793bab0a471 commit: ccf1b0b1c18e6d00fb919bce107f2793bab0a471 branch: main author: Mark Shannon committer: markshannon date: 2025-04-29T18:00:35+01:00 summary: GH-132508: Use tagged integers on the evaluation stack for the

[Python-checkins] [3.13] GH-127682: Backport GH-132351 (GH-132384)

2025-04-29 Thread markshannon
https://github.com/python/cpython/commit/132bdf6990003df61d30c379a12c041010d00245 commit: 132bdf6990003df61d30c379a12c041010d00245 branch: 3.13 author: Mark Shannon committer: markshannon date: 2025-04-29T09:35:29+01:00 summary: [3.13] GH-127682: Backport GH-132351 (GH-132384) Only call

[Python-checkins] GH-132554: Add stats for GET_ITER (GH-132592)

2025-04-29 Thread markshannon
https://github.com/python/cpython/commit/622300bdfa6242b0fc909235fcc64f07b3d280d7 commit: 622300bdfa6242b0fc909235fcc64f07b3d280d7 branch: main author: Mark Shannon committer: markshannon date: 2025-04-29T09:00:14+01:00 summary: GH-132554: Add stats for GET_ITER (GH-132592) * Add stats for

[Python-checkins] GH-131498: Cases generator: Allow input and 'peek' variables to be modified (GH-132506)

2025-04-14 Thread markshannon
https://github.com/python/cpython/commit/844596c09fc812a58ac1b381b51bee12d327da31 commit: 844596c09fc812a58ac1b381b51bee12d327da31 branch: main author: Mark Shannon committer: markshannon date: 2025-04-14T12:19:53+01:00 summary: GH-131498: Cases generator: Allow input and 'peek' varia

[Python-checkins] GH-127682: Only call `__iter__` once in generator expressions. (GH-132351)

2025-04-11 Thread markshannon
https://github.com/python/cpython/commit/d87e7f35297d34755026173d84a38eedfbed78de commit: d87e7f35297d34755026173d84a38eedfbed78de branch: main author: Mark Shannon committer: markshannon date: 2025-04-11T09:37:22+01:00 summary: GH-127682: Only call `__iter__` once in generator expressions. (GH

[Python-checkins] GH-131498: Remove conditional stack effects (GH-131499)

2025-04-05 Thread markshannon
https://github.com/python/cpython/commit/7ebd71ee14a497bb5dc7a693dd00f074a9f4831f commit: 7ebd71ee14a497bb5dc7a693dd00f074a9f4831f branch: main author: Mark Shannon committer: markshannon date: 2025-03-20T15:39:38Z summary: GH-131498: Remove conditional stack effects (GH-131499) * Adds some

[Python-checkins] GH-131498: Cases generator: manage stacks automatically (GH-132074)

2025-04-04 Thread markshannon
https://github.com/python/cpython/commit/7099c75550c55050ac160cfe3519d49f2ef0c675 commit: 7099c75550c55050ac160cfe3519d49f2ef0c675 branch: main author: Mark Shannon committer: markshannon date: 2025-04-04T17:59:36+01:00 summary: GH-131498: Cases generator: manage stacks automatically (GH-132074

[Python-checkins] GH-131904: Fix Py_STACKREF_DEBUG build (GH-132022)

2025-04-03 Thread markshannon
https://github.com/python/cpython/commit/275056a7fdcbe36aaac494b4183ae59943a338eb commit: 275056a7fdcbe36aaac494b4183ae59943a338eb branch: main author: Mark Shannon committer: markshannon date: 2025-04-03T09:40:37+01:00 summary: GH-131904: Fix Py_STACKREF_DEBUG build (GH-132022) files: M

[Python-checkins] GH-131498: Another refactoring of the code generator (GH-131827)

2025-03-31 Thread markshannon
https://github.com/python/cpython/commit/c535a132e40a516a7cca219b2659e85bccaa0529 commit: c535a132e40a516a7cca219b2659e85bccaa0529 branch: main author: Mark Shannon committer: markshannon date: 2025-03-31T13:52:48+01:00 summary: GH-131498: Another refactoring of the code generator (GH-131827

[Python-checkins] GH-130296: Remove `_PyOpcode_max_stack_effect` as it is no longer used (GH-131493)

2025-03-27 Thread markshannon
https://github.com/python/cpython/commit/83d54fa8760f54935086bb40a2e721f927e705b9 commit: 83d54fa8760f54935086bb40a2e721f927e705b9 branch: main author: Mark Shannon committer: markshannon date: 2025-03-20T11:42:54Z summary: GH-130296: Remove `_PyOpcode_max_stack_effect` as it is no longer used

[Python-checkins] GH-131729: Consider in-memory state when merging storage and stack (GH-131773)

2025-03-27 Thread markshannon
https://github.com/python/cpython/commit/d836d287a7bd1392f6d011888a7469854b0f4325 commit: d836d287a7bd1392f6d011888a7469854b0f4325 branch: main author: Mark Shannon committer: markshannon date: 2025-03-27T08:32:45Z summary: GH-131729: Consider in-memory state when merging storage and stack (GH

[Python-checkins] GH-131729: Code-gen better liveness analysis (GH-131732)

2025-03-26 Thread markshannon
https://github.com/python/cpython/commit/1b8bb1ed0c4243796af531a35de982bc4f028215 commit: 1b8bb1ed0c4243796af531a35de982bc4f028215 branch: main author: Mark Shannon committer: markshannon date: 2025-03-26T15:21:35Z summary: GH-131729: Code-gen better liveness analysis (GH-131732) * Rename

[Python-checkins] GH-131513: Cases generator: Allow dead inputs to be reassigned (GH-131515)

2025-03-21 Thread markshannon
https://github.com/python/cpython/commit/d3f6063af18a008e316e4342492e877ee51463e2 commit: d3f6063af18a008e316e4342492e877ee51463e2 branch: main author: Mark Shannon committer: markshannon date: 2025-03-21T11:38:17Z summary: GH-131513: Cases generator: Allow dead inputs to be reassigned (GH

[Python-checkins] GH-127705: Don't call _Py_ForgetReference before _Py_Dealloc (GH-131508)

2025-03-20 Thread markshannon
https://github.com/python/cpython/commit/684a759c205d3e9f6ef74d493e1d72f5ad933d68 commit: 684a759c205d3e9f6ef74d493e1d72f5ad933d68 branch: main author: Mark Shannon committer: markshannon date: 2025-03-20T15:45:43Z summary: GH-127705: Don't call _Py_ForgetReference before _Py_Dealloc (GH-1

[Python-checkins] GH-125174: Make immortality "sticky" (GH-131355)

2025-03-17 Thread markshannon
https://github.com/python/cpython/commit/9881fc5483d6298dc969919dddecf2b72ddf8d43 commit: 9881fc5483d6298dc969919dddecf2b72ddf8d43 branch: main author: Mark Shannon committer: markshannon date: 2025-03-17T17:22:35Z summary: GH-125174: Make immortality "sticky" (GH-131355) * Us

[Python-checkins] GH-127705: Move mortal decrefs to internal header and make sure _PyReftracerTrack is called

2025-03-17 Thread markshannon
https://github.com/python/cpython/commit/fd545d735d5f9c048f99767c700f72853a9b7acd commit: fd545d735d5f9c048f99767c700f72853a9b7acd branch: main author: Mark Shannon committer: markshannon date: 2025-03-17T17:23:50Z summary: GH-127705: Move mortal decrefs to internal header and make sure

[Python-checkins] GH-131238: More refactoring of core header files (GH-131351)

2025-03-17 Thread markshannon
https://github.com/python/cpython/commit/a45f25361d582ce742fef7f23e7feadd19b67460 commit: a45f25361d582ce742fef7f23e7feadd19b67460 branch: main author: Mark Shannon committer: markshannon date: 2025-03-17T14:41:05Z summary: GH-131238: More refactoring of core header files (GH-131351) Adds new

[Python-checkins] GH-131238: Core header refactor (GH-131250)

2025-03-17 Thread markshannon
https://github.com/python/cpython/commit/a1aeec61c4321ba9a6966109343bd88dcf9cb26a commit: a1aeec61c4321ba9a6966109343bd88dcf9cb26a branch: main author: Mark Shannon committer: markshannon date: 2025-03-17T09:19:04Z summary: GH-131238: Core header refactor (GH-131250) * Moves most structs in

[Python-checkins] GH-123044: Give the `POP_TOP` after a case test a location in the body, not the pattern. (GH-130627)

2025-03-15 Thread markshannon
https://github.com/python/cpython/commit/be046ee6e06d3eea5f249c524861b76df6c9f003 commit: be046ee6e06d3eea5f249c524861b76df6c9f003 branch: main author: Mark Shannon committer: markshannon date: 2025-03-10T17:31:16Z summary: GH-123044: Give the `POP_TOP` after a case test a location in the body

[Python-checkins] GH-125174: Make immortality "sticky" (GH-131184)

2025-03-13 Thread markshannon
https://github.com/python/cpython/commit/3a91ee97245639c7c4f8852418157d3fc0ec1a82 commit: 3a91ee97245639c7c4f8852418157d3fc0ec1a82 branch: main author: Mark Shannon committer: markshannon date: 2025-03-13T16:10:13Z summary: GH-125174: Make immortality "sticky" (GH-131184) files:

[Python-checkins] GH-127705: Fix _Py_RefcntAdd to handle objects becoming immortal (GH-131140)

2025-03-12 Thread markshannon
https://github.com/python/cpython/commit/f30376c650c40e0819edd9981e45f8ba206fdd83 commit: f30376c650c40e0819edd9981e45f8ba206fdd83 branch: main author: Mark Shannon committer: markshannon date: 2025-03-12T16:54:10Z summary: GH-127705: Fix _Py_RefcntAdd to handle objects becoming immortal (GH

[Python-checkins] GH-127705: Check for immortality in refcount accounting (#131072)

2025-03-11 Thread markshannon
https://github.com/python/cpython/commit/6e5b9f3d00658ce07909d78d1a796e95ad5dba1a commit: 6e5b9f3d00658ce07909d78d1a796e95ad5dba1a branch: main author: Mark Shannon committer: markshannon date: 2025-03-11T11:53:07Z summary: GH-127705: Check for immortality in refcount accounting (#131072

[Python-checkins] GH-127705: Use `_PyStackRef`s in the default build. (GH-127875)

2025-03-11 Thread markshannon
https://github.com/python/cpython/commit/2bef8ea8ea045d20394f0daec7a5c5b1046a4e22 commit: 2bef8ea8ea045d20394f0daec7a5c5b1046a4e22 branch: main author: Mark Shannon committer: markshannon date: 2025-03-10T14:06:56Z summary: GH-127705: Use `_PyStackRef`s in the default build. (GH-127875) files

[Python-checkins] GH-128534: Fix behavior of branch monitoring for `async for` (GH-130847)

2025-03-07 Thread markshannon
https://github.com/python/cpython/commit/89df62c12093bfa079860a93032468ebece3774d commit: 89df62c12093bfa079860a93032468ebece3774d branch: main author: Mark Shannon committer: markshannon date: 2025-03-07T14:30:31Z summary: GH-128534: Fix behavior of branch monitoring for `async for` (GH-130847

[Python-checkins] gh-130574: renumber RESUME opcode from 149 to 128 (GH-130685)

2025-03-06 Thread markshannon
https://github.com/python/cpython/commit/aeb23273867b27818a3dabd5fca086a1a2e8d229 commit: aeb23273867b27818a3dabd5fca086a1a2e8d229 branch: main author: Tomasz Pytel committer: markshannon date: 2025-03-06T08:59:36Z summary: gh-130574: renumber RESUME opcode from 149 to 128 (GH-130685) files: A

[Python-checkins] GH-127705: better double free message. (GH-130785)

2025-03-05 Thread markshannon
https://github.com/python/cpython/commit/78d50e91ff31bc7fd0ac877cf59ee083e94d0915 commit: 78d50e91ff31bc7fd0ac877cf59ee083e94d0915 branch: main author: Mark Shannon committer: markshannon date: 2025-03-05T14:00:42Z summary: GH-127705: better double free message. (GH-130785) * Add location

[Python-checkins] GH-90916: Add helper function to dis.Instruction and use it to reduce churn in test_dis (GH-130643)

2025-03-04 Thread markshannon
https://github.com/python/cpython/commit/885c3d126f39711971d84a2dee04c19df8a301e4 commit: 885c3d126f39711971d84a2dee04c19df8a301e4 branch: main author: Mark Shannon committer: markshannon date: 2025-03-04T16:43:39Z summary: GH-90916: Add helper function to dis.Instruction and use it to reduce

[Python-checkins] GH-130296: Avoid stack transients in four instructions. (GH-130310)

2025-02-28 Thread markshannon
https://github.com/python/cpython/commit/54965f3fb25b381995a73b09d928c344bd2b86bd commit: 54965f3fb25b381995a73b09d928c344bd2b86bd branch: main author: Mark Shannon committer: markshannon date: 2025-02-28T18:00:38Z summary: GH-130296: Avoid stack transients in four instructions. (GH-130310

[Python-checkins] gh-130595: Fix leak in WITH_EXCEPT_START error case (GH-130626)

2025-02-28 Thread markshannon
https://github.com/python/cpython/commit/fecf8bc8f2fd09a9a4c5177d32dbb42920b4e177 commit: fecf8bc8f2fd09a9a4c5177d32dbb42920b4e177 branch: main author: Petr Viktorin committer: markshannon date: 2025-02-28T08:58:50Z summary: gh-130595: Fix leak in WITH_EXCEPT_START error case (GH-130626) Co

[Python-checkins] GH-128534: Instrument branches for `async for` loops. (GH-130569)

2025-02-27 Thread markshannon
https://github.com/python/cpython/commit/2a18e80695ac1f05c95ea3b1cfe29defd45e2f71 commit: 2a18e80695ac1f05c95ea3b1cfe29defd45e2f71 branch: main author: Mark Shannon committer: markshannon date: 2025-02-27T09:36:41Z summary: GH-128534: Instrument branches for `async for` loops. (GH-130569

[Python-checkins] GH-130396: Treat clang -Og as optimized for gdb tests (GH-130550)

2025-02-26 Thread markshannon
https://github.com/python/cpython/commit/129db32d6f2d7f450d2741da6a222c18e458c61b commit: 129db32d6f2d7f450d2741da6a222c18e458c61b branch: main author: Mark Shannon committer: markshannon date: 2025-02-26T09:01:58Z summary: GH-130396: Treat clang -Og as optimized for gdb tests (GH-130550

[Python-checkins] GH-130396: Increase trashcan overhead (GH-130552)

2025-02-26 Thread markshannon
https://github.com/python/cpython/commit/263d56e1e23c711e3abafcae6707cbeb66d15e93 commit: 263d56e1e23c711e3abafcae6707cbeb66d15e93 branch: main author: Mark Shannon committer: markshannon date: 2025-02-26T08:54:24Z summary: GH-130396: Increase trashcan overhead (GH-130552) Double trashcan

[Python-checkins] GH-130396: Include stack margin for debug windows builds (GH-130554)

2025-02-25 Thread markshannon
https://github.com/python/cpython/commit/2dad1e08ec9d5ddc798a313900613b3d1eeaff6b commit: 2dad1e08ec9d5ddc798a313900613b3d1eeaff6b branch: main author: Mark Shannon committer: markshannon date: 2025-02-25T19:26:21Z summary: GH-130396: Include stack margin for debug windows builds (GH-130554

[Python-checkins] gh-122029: Move monitoring after method expand for CALL_KW (GH-130488)

2025-02-25 Thread markshannon
https://github.com/python/cpython/commit/c5f925c8c948736bd64652918b4e0186b91abbb5 commit: c5f925c8c948736bd64652918b4e0186b91abbb5 branch: main author: Tian Gao committer: markshannon date: 2025-02-25T15:43:49Z summary: gh-122029: Move monitoring after method expand for CALL_KW (GH-130488

[Python-checkins] gh-130384: Skip a test_getallocatedblocks test pre-condition on iOS. (GH-130385)

2025-02-24 Thread markshannon
https://github.com/python/cpython/commit/8a76eb846926384a48bb1997bbf5c162fe29fc5d commit: 8a76eb846926384a48bb1997bbf5c162fe29fc5d branch: main author: Russell Keith-Magee committer: markshannon date: 2025-02-24T15:34:38Z summary: gh-130384: Skip a test_getallocatedblocks test pre-condition on

[Python-checkins] GH-128682: Mark two more macros as escaping. (GH-129645)

2025-02-04 Thread markshannon
https://github.com/python/cpython/commit/96ff4c2486e0c3efb62ce3e712c9bd919dbb6b20 commit: 96ff4c2486e0c3efb62ce3e712c9bd919dbb6b20 branch: main author: Mark Shannon committer: markshannon date: 2025-02-04T14:00:51Z summary: GH-128682: Mark two more macros as escaping. (GH-129645) Expand out

[Python-checkins] GH-128682: Spill the stack pointer in labels, as well as instructions (GH-129618)

2025-02-04 Thread markshannon
https://github.com/python/cpython/commit/2effea4dab05160abc05f1a548d519a5f6d684bc commit: 2effea4dab05160abc05f1a548d519a5f6d684bc branch: main author: Mark Shannon committer: markshannon date: 2025-02-04T12:18:31Z summary: GH-128682: Spill the stack pointer in labels, as well as instructions

[Python-checkins] GH-128563: Generate `opcode = ...` in instructions that need `opcode` (GH-129608)

2025-02-03 Thread markshannon
https://github.com/python/cpython/commit/75b628adebd4594529da25ea9915600f2872fc2b commit: 75b628adebd4594529da25ea9915600f2872fc2b branch: main author: Mark Shannon committer: markshannon date: 2025-02-03T15:09:21Z summary: GH-128563: Generate `opcode = ...` in instructions that need `opcode

[Python-checkins] GH-128563: Move some labels, to simplify implementing tailcalling interpreter. (GH-129525)

2025-01-31 Thread markshannon
https://github.com/python/cpython/commit/54f74b80aef8b581f2b124d150903cec83aff005 commit: 54f74b80aef8b581f2b124d150903cec83aff005 branch: main author: Mark Shannon committer: markshannon date: 2025-01-31T17:13:20Z summary: GH-128563: Move some labels, to simplify implementing tailcalling

[Python-checkins] GH-128563: Simplify recursion check in `_PyEval_EvalFrameDefault` (GH-129481)

2025-01-31 Thread markshannon
https://github.com/python/cpython/commit/c3ae5c9e4ad121f8ba60ffe81ca4e2a9c52dc659 commit: c3ae5c9e4ad121f8ba60ffe81ca4e2a9c52dc659 branch: main author: Mark Shannon committer: markshannon date: 2025-01-31T12:12:24Z summary: GH-128563: Simplify recursion check in `_PyEval_EvalFrameDefault` (GH

[Python-checkins] gh-127119: Faster check for small ints in long_dealloc (GH-127620)

2025-01-29 Thread markshannon
https://github.com/python/cpython/commit/a29221675e7367608961c3484701ab2671ec6f3c commit: a29221675e7367608961c3484701ab2671ec6f3c branch: main author: Pieter Eendebak committer: markshannon date: 2025-01-29T15:22:18Z summary: gh-127119: Faster check for small ints in long_dealloc (GH-127620

[Python-checkins] gh-126703: Add freelists for list and tuple iterators (GH-128592)

2025-01-29 Thread markshannon
https://github.com/python/cpython/commit/1a80214f11f1a6ddcea19e2c40719c746a163f02 commit: 1a80214f11f1a6ddcea19e2c40719c746a163f02 branch: main author: Pieter Eendebak committer: markshannon date: 2025-01-29T09:15:24Z summary: gh-126703: Add freelists for list and tuple iterators (GH-128592

[Python-checkins] GH-128682: Change a couple of functions to only steal references on success. (GH-129132)

2025-01-22 Thread markshannon
https://github.com/python/cpython/commit/470a0a68e4254f1a3e8e22cce0c3a0827055 commit: 470a0a68e4254f1a3e8e22cce0c3a0827055 branch: main author: Mark Shannon committer: markshannon date: 2025-01-22T10:51:37Z summary: GH-128682: Change a couple of functions to only steal references on

[Python-checkins] GH-128563: Add new frame owner type for interpreter entry frames (GH-129078)

2025-01-21 Thread markshannon
https://github.com/python/cpython/commit/f5b6356a11bde64ac1e08478dd5ee7c47da653d8 commit: f5b6356a11bde64ac1e08478dd5ee7c47da653d8 branch: main author: Mark Shannon committer: markshannon date: 2025-01-21T10:15:02Z summary: GH-128563: Add new frame owner type for interpreter entry frames (GH

[Python-checkins] GH-127953: Make line number lookup O(1) regardless of the size of the code object (GH-128350)

2025-01-21 Thread markshannon
https://github.com/python/cpython/commit/7239da75592081b6e8d0917a2cd2bf19907c8165 commit: 7239da75592081b6e8d0917a2cd2bf19907c8165 branch: main author: Mark Shannon committer: markshannon date: 2025-01-21T09:33:23Z summary: GH-127953: Make line number lookup O(1) regardless of the size of the

[Python-checkins] GH-128939: Refactor JIT optimize structs (GH-128940)

2025-01-20 Thread markshannon
https://github.com/python/cpython/commit/f0f7b978be84c432139da1b107825aa2dc536854 commit: f0f7b978be84c432139da1b107825aa2dc536854 branch: main author: Mark Shannon committer: markshannon date: 2025-01-20T15:49:15Z summary: GH-128939: Refactor JIT optimize structs (GH-128940) files: M Include

[Python-checkins] Refactor code generators a bit (GH-128920)

2025-01-17 Thread markshannon
https://github.com/python/cpython/commit/b5558cd63c62855ed43d66a55907f9d4398134e3 commit: b5558cd63c62855ed43d66a55907f9d4398134e3 branch: main author: Mark Shannon committer: markshannon date: 2025-01-17T16:59:30Z summary: Refactor code generators a bit (GH-128920) Refactor code generators a

[Python-checkins] GH-128682: Convert explicit loops closing arrays into `DECREF_INPUTS`. (GH-128822)

2025-01-14 Thread markshannon
https://github.com/python/cpython/commit/f49a1df6f3b1249bcaedfda8e000e27c6cdffd99 commit: f49a1df6f3b1249bcaedfda8e000e27c6cdffd99 branch: main author: Mark Shannon committer: markshannon date: 2025-01-14T15:08:56Z summary: GH-128682: Convert explicit loops closing arrays into `DECREF_INPUTS

[Python-checkins] GH-128682: Stronger checking of `PyStackRef_CLOSE` and `DEAD`. (GH-128683)

2025-01-13 Thread markshannon
https://github.com/python/cpython/commit/517dc65ffcea8413e1a60c4cb5d63e5fa39e7f72 commit: 517dc65ffcea8413e1a60c4cb5d63e5fa39e7f72 branch: main author: Mark Shannon committer: markshannon date: 2025-01-13T12:37:48Z summary: GH-128682: Stronger checking of `PyStackRef_CLOSE` and `DEAD`. (GH

[Python-checkins] GH-124483: Mark `Py_DECREF`, etc. as escaping for the JIT (GH-128678)

2025-01-13 Thread markshannon
https://github.com/python/cpython/commit/39fc7ef4fe211e8f7d3b5a6e392e475ecdfbce72 commit: 39fc7ef4fe211e8f7d3b5a6e392e475ecdfbce72 branch: main author: Mark Shannon committer: markshannon date: 2025-01-13T11:42:45Z summary: GH-124483: Mark `Py_DECREF`, etc. as escaping for the JIT (GH-128678

[Python-checkins] GH-128685: Specialize (rather than quicken) LOAD_CONST into LOAD_CONST_[IM]MORTAL (GH-128708)

2025-01-13 Thread markshannon
https://github.com/python/cpython/commit/ddd959987c557beaf823b681bf5e5e573ad657ac commit: ddd959987c557beaf823b681bf5e5e573ad657ac branch: main author: Mark Shannon committer: markshannon date: 2025-01-13T10:30:28Z summary: GH-128685: Specialize (rather than quicken) LOAD_CONST into

[Python-checkins] GH-128533: Add `NOT_TAKEN` instruction after bytecode optimization. (GH-128554)

2025-01-06 Thread markshannon
https://github.com/python/cpython/commit/2434fd2d50b8b770585ad5949a664e4bbab4bde1 commit: 2434fd2d50b8b770585ad5949a664e4bbab4bde1 branch: main author: Mark Shannon committer: markshannon date: 2025-01-06T22:01:07Z summary: GH-128533: Add `NOT_TAKEN` instruction after bytecode optimization. (GH

[Python-checkins] GH-128073: Include `EXIT_IF` when checking for escaping calls (GH-128537)

2025-01-06 Thread markshannon
https://github.com/python/cpython/commit/b9c693dcca01537eee1ef716ffebc632be37594b commit: b9c693dcca01537eee1ef716ffebc632be37594b branch: main author: Mark Shannon committer: markshannon date: 2025-01-06T14:16:22Z summary: GH-128073: Include `EXIT_IF` when checking for escaping calls (GH

[Python-checkins] GH-127705: Add debug mode for `_PyStackRef`s inspired by HPy debug mode (GH-128121)

2024-12-20 Thread markshannon
https://github.com/python/cpython/commit/128cc47fbd44e3e09c50d9674fe4a4bba3be450c commit: 128cc47fbd44e3e09c50d9674fe4a4bba3be450c branch: main author: Mark Shannon committer: markshannon date: 2024-12-20T16:52:20Z summary: GH-127705: Add debug mode for `_PyStackRef`s inspired by HPy debug mode

[Python-checkins] GH-122548: Correct magic number comment (GH-128115)

2024-12-20 Thread markshannon
https://github.com/python/cpython/commit/df46c780febab667ee01264ae32c4e866cecd911 commit: df46c780febab667ee01264ae32c4e866cecd911 branch: main author: Mark Shannon committer: markshannon date: 2024-12-20T11:57:44Z summary: GH-122548: Correct magic number comment (GH-128115) Correct magic

[Python-checkins] GH-126833: Dumps graphviz representation of executor graph. (GH-126880)

2024-12-13 Thread markshannon
https://github.com/python/cpython/commit/e62e1ca4553dbcf9d7f89be24bebcbd9213f9ae5 commit: e62e1ca4553dbcf9d7f89be24bebcbd9213f9ae5 branch: main author: Mark Shannon committer: markshannon date: 2024-12-13T11:00:00Z summary: GH-126833: Dumps graphviz representation of executor graph. (GH-126880

[Python-checkins] gh-126868: Add freelist for compact int objects (GH-126865)

2024-12-13 Thread markshannon
https://github.com/python/cpython/commit/5fc6bb2754a25157575efc0b37da78c629fea46e commit: 5fc6bb2754a25157575efc0b37da78c629fea46e branch: main author: Pieter Eendebak committer: markshannon date: 2024-12-13T10:06:26Z summary: gh-126868: Add freelist for compact int objects (GH-126865) files

[Python-checkins] GH-125174: Fix compiler warning (GH-127860)

2024-12-12 Thread markshannon
https://github.com/python/cpython/commit/487fdbed40734fd7721457c6f6ffeca03da0b0e7 commit: 487fdbed40734fd7721457c6f6ffeca03da0b0e7 branch: main author: Mark Shannon committer: markshannon date: 2024-12-12T11:22:20Z summary: GH-125174: Fix compiler warning (GH-127860) Fix compiler warning

[Python-checkins] GH-125174: Mark objects as statically allocated. (#127797)

2024-12-11 Thread markshannon
https://github.com/python/cpython/commit/bc262de06b10a2d119c28bac75060bf00301697a commit: bc262de06b10a2d119c28bac75060bf00301697a branch: main author: Mark Shannon committer: markshannon date: 2024-12-11T17:37:38Z summary: GH-125174: Mark objects as statically allocated. (#127797) * Set a bit

[Python-checkins] GH-127058: Make `PySequence_Tuple` safer and probably faster. (#127758)

2024-12-11 Thread markshannon
https://github.com/python/cpython/commit/5a23994a3dbee43a0b08f5920032f60f38b63071 commit: 5a23994a3dbee43a0b08f5920032f60f38b63071 branch: main author: Mark Shannon committer: markshannon date: 2024-12-11T14:02:59Z summary: GH-127058: Make `PySequence_Tuple` safer and probably faster. (#127758

  1   2   3   >