[Python-checkins] GH-115419: Improve list of escaping functions (GH-118054)

2024-04-19 Thread markshannon
https://github.com/python/cpython/commit/d3bd6b5f3f48731715e21fe132b8e65a4e5f6ce8 commit: d3bd6b5f3f48731715e21fe132b8e65a4e5f6ce8 branch: main author: Mark Shannon committer: markshannon date: 2024-04-19T09:25:07+01:00 summary: GH-115419: Improve list of escaping functions (GH-118054) files

[Python-checkins] GH-116202: Incorporate invalidation check into _START_EXECUTOR. (GH-118044)

2024-04-19 Thread markshannon
https://github.com/python/cpython/commit/7e6fa5fceddc3f4721c036116c7a11533c8b23b3 commit: 7e6fa5fceddc3f4721c036116c7a11533c8b23b3 branch: main author: Mark Shannon committer: markshannon date: 2024-04-19T09:26:42+01:00 summary: GH-116202: Incorporate invalidation check into _START_EXECUTOR

[Python-checkins] GH-115480: Reduce guard strength for binary ops when type of one operand is known already (GH-118050)

2024-04-22 Thread markshannon
https://github.com/python/cpython/commit/a6647d16abf4dd65997865e857371673238e60bf commit: a6647d16abf4dd65997865e857371673238e60bf branch: main author: Mark Shannon committer: markshannon date: 2024-04-22T13:34:06+01:00 summary: GH-115480: Reduce guard strength for binary ops when type of one

[Python-checkins] GH-118095: Convert DEOPT_IFs on likely side exits to EXIT_IFs (GH-118106)

2024-04-24 Thread markshannon
https://github.com/python/cpython/commit/77cd0428b698a743844179f7babead43b2794d77 commit: 77cd0428b698a743844179f7babead43b2794d77 branch: main author: Mark Shannon committer: markshannon date: 2024-04-24T14:37:55+01:00 summary: GH-118095: Convert DEOPT_IFs on likely side exits to EXIT_IFs (GH

[Python-checkins] GH-115419: Move setting the instruction pointer to error exit stubs (GH-118088)

2024-04-24 Thread markshannon
https://github.com/python/cpython/commit/83235f7791fbe6ee2618192f2341de9cd22d0511 commit: 83235f7791fbe6ee2618192f2341de9cd22d0511 branch: main author: Mark Shannon committer: markshannon date: 2024-04-24T14:41:30+01:00 summary: GH-115419: Move setting the instruction pointer to error exit

[Python-checkins] GH-118095: Handle `RETURN_GENERATOR` in tier 2 (GH-118180)

2024-04-25 Thread markshannon
https://github.com/python/cpython/commit/f180b31e7629d36265fa36f1560365358b4fd47c commit: f180b31e7629d36265fa36f1560365358b4fd47c branch: main author: Mark Shannon committer: markshannon date: 2024-04-25T11:32:47+01:00 summary: GH-118095: Handle `RETURN_GENERATOR` in tier 2 (GH-118180) files

[Python-checkins] gh-117385: Remove unhooked events on sys.settrace (GH-117386)

2024-04-26 Thread markshannon
https://github.com/python/cpython/commit/0f998613324bcb6fa1cd9a3a2fc7e46f67358df7 commit: 0f998613324bcb6fa1cd9a3a2fc7e46f67358df7 branch: main author: Tian Gao committer: markshannon date: 2024-04-26T17:01:44+01:00 summary: gh-117385: Remove unhooked events on sys.settrace (GH-117386) files

[Python-checkins] GH-118095: Add dynamic exit support and FOR_ITER_GEN support to tier 2 (GH-118279)

2024-04-26 Thread markshannon
https://github.com/python/cpython/commit/3e06c7f719b99cc7f5e8889319cff4980e41d3e8 commit: 3e06c7f719b99cc7f5e8889319cff4980e41d3e8 branch: main author: Mark Shannon committer: markshannon date: 2024-04-26T18:08:50+01:00 summary: GH-118095: Add dynamic exit support and FOR_ITER_GEN support to

[Python-checkins] GH-118095: Allow a variant of RESUME_CHECK in tier 2 (GH-118286)

2024-04-28 Thread markshannon
https://github.com/python/cpython/commit/ab6eda0ee59587e84cb417dd84452b9c6845434c commit: ab6eda0ee59587e84cb417dd84452b9c6845434c branch: main author: Mark Shannon committer: markshannon date: 2024-04-29T07:54:05+01:00 summary: GH-118095: Allow a variant of RESUME_CHECK in tier 2 (GH-118286

[Python-checkins] gh-107674: Lazy load line number to improve performance of tracing (GH-118127)

2024-04-29 Thread markshannon
https://github.com/python/cpython/commit/375c94c75dd9eaefaddd89a7f704a031441af286 commit: 375c94c75dd9eaefaddd89a7f704a031441af286 branch: main author: Tian Gao committer: markshannon date: 2024-04-29T09:54:52+01:00 summary: gh-107674: Lazy load line number to improve performance of tracing (GH

[Python-checkins] GH-118095: Add tier 2 support for YIELD_VALUE (GH-118380)

2024-04-30 Thread markshannon
https://github.com/python/cpython/commit/5b05d452cd20d9f0cfecdeec90adad3af5e4dfff commit: 5b05d452cd20d9f0cfecdeec90adad3af5e4dfff branch: main author: Mark Shannon committer: markshannon date: 2024-04-30T11:33:13+01:00 summary: GH-118095: Add tier 2 support for YIELD_VALUE (GH-118380) files

[Python-checkins] GH-118095: Make invalidating and clearing executors memory safe (GH-118459)

2024-05-01 Thread markshannon
https://github.com/python/cpython/commit/f6fab21721c8aedc5dca97dbeb6292a067c19bf1 commit: f6fab21721c8aedc5dca97dbeb6292a067c19bf1 branch: main author: Mark Shannon committer: markshannon date: 2024-05-01T11:34:50+01:00 summary: GH-118095: Make invalidating and clearing executors memory safe

[Python-checkins] GH-118095: Make sure that progress is made if there are pending calls being handled. (GH-118484)

2024-05-01 Thread markshannon
https://github.com/python/cpython/commit/39981fd07a479ef3cefb38ee96ac319fe00f2dde commit: 39981fd07a479ef3cefb38ee96ac319fe00f2dde branch: main author: Mark Shannon committer: markshannon date: 2024-05-01T22:18:31+01:00 summary: GH-118095: Make sure that progress is made if there are pending

[Python-checkins] GH-117442: Check eval-breaker at start (rather than end) of tier 2 loops (GH-118482)

2024-05-02 Thread markshannon
https://github.com/python/cpython/commit/67bba9dd0f5b9c2d24c2bc6d239c4502040484af commit: 67bba9dd0f5b9c2d24c2bc6d239c4502040484af branch: main author: Mark Shannon committer: markshannon date: 2024-05-02T13:10:31+01:00 summary: GH-117442: Check eval-breaker at start (rather than end) of tier 2

[Python-checkins] GH-118095: Unify the behavior of tier 2 FOR_ITER branch micro-ops (GH-118420)

2024-05-02 Thread markshannon
https://github.com/python/cpython/commit/72867c962cc59c6d56805f86530696bea6beb039 commit: 72867c962cc59c6d56805f86530696bea6beb039 branch: main author: Mark Shannon committer: markshannon date: 2024-05-02T16:17:59+01:00 summary: GH-118095: Unify the behavior of tier 2 FOR_ITER branch micro-ops

[Python-checkins] gh-107674: Improve performance of `sys.settrace` (GH-117133)

2024-05-03 Thread markshannon
https://github.com/python/cpython/commit/9c14ed06188aa4d462cd0fc4218c6023f9bf03cb commit: 9c14ed06188aa4d462cd0fc4218c6023f9bf03cb branch: main author: Tian Gao committer: markshannon date: 2024-05-03T19:49:24+01:00 summary: gh-107674: Improve performance of `sys.settrace` (GH-117133) * Check

[Python-checkins] GH-113464: Remove the extra jump via `_SIDE_EXIT` in `_EXIT_TRACE` (GH-118545)

2024-05-04 Thread markshannon
https://github.com/python/cpython/commit/da2cfc4cb6b756b819b45bf34dd735c27b74d803 commit: da2cfc4cb6b756b819b45bf34dd735c27b74d803 branch: main author: Mark Shannon committer: markshannon date: 2024-05-04T08:50:24+01:00 summary: GH-113464: Remove the extra jump via `_SIDE_EXIT` in `_EXIT_TRACE

[Python-checkins] GH-118095: Use broader specializations of CALL in tier 1, for better tier 2 support of calls. (GH-118322)

2024-05-04 Thread markshannon
https://github.com/python/cpython/commit/1ab6356ebec25f216a0eddbd81225abcb93f2d55 commit: 1ab6356ebec25f216a0eddbd81225abcb93f2d55 branch: main author: Mark Shannon committer: markshannon date: 2024-05-04T12:11:11+01:00 summary: GH-118095: Use broader specializations of CALL in tier 1, for

[Python-checkins] gh-74929: Implement PEP 667 (GH-115153)

2024-05-04 Thread markshannon
https://github.com/python/cpython/commit/b034f14a4b6e9197d3926046721b8b4b4b4f5b3d commit: b034f14a4b6e9197d3926046721b8b4b4b4f5b3d branch: main author: Tian Gao committer: markshannon date: 2024-05-04T12:12:10+01:00 summary: gh-74929: Implement PEP 667 (GH-115153) files: A Misc/NEWS.d/next

[Python-checkins] GH-118910: Less boilerplate in the tier 2 optimizer (#118913)

2024-05-10 Thread markshannon
https://github.com/python/cpython/commit/f5c6b9977a561fcf9c2a803fb08652fd39b13d3b commit: f5c6b9977a561fcf9c2a803fb08652fd39b13d3b branch: main author: Mark Shannon committer: markshannon date: 2024-05-10T17:43:23+01:00 summary: GH-118910: Less boilerplate in the tier 2 optimizer (#118913

[Python-checkins] GH-117195: Avoid assertion error in `object.__sizeof__` (GH-117220)

2024-05-23 Thread markshannon
https://github.com/python/cpython/commit/406ffb5293a8c9ca315bf63de1ee36a9b33f9aaf commit: 406ffb5293a8c9ca315bf63de1ee36a9b33f9aaf branch: main author: Mark Shannon committer: markshannon date: 2024-05-23T11:06:10+01:00 summary: GH-117195: Avoid assertion error in `object.__sizeof__` (GH-117220

[Python-checkins] [3.13] GH-117195: Avoid assertion error in `object.__sizeof__` (GH-117220) (GH-119456)

2024-05-23 Thread markshannon
https://github.com/python/cpython/commit/251ef2e36f61a1c4b7c628ba9dc38a10a355a058 commit: 251ef2e36f61a1c4b7c628ba9dc38a10a355a058 branch: 3.13 author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> committer: markshannon date: 2024-05-23T16:58:34+01:00 summary:

[Python-checkins] GH-113595: Don't enter invalid executor (GH-113596)

2024-01-03 Thread markshannon
https://github.com/python/cpython/commit/dc8df6e84024b79aa96e85a64f354bf8e827bcba commit: dc8df6e84024b79aa96e85a64f354bf8e827bcba branch: main author: Mark Shannon committer: markshannon date: 2024-01-03T11:01:13Z summary: GH-113595: Don't enter invalid executor (GH-113596) files: M P

[Python-checkins] GH-113689: Fix broken handling of invalid executors (GH-113694)

2024-01-04 Thread markshannon
https://github.com/python/cpython/commit/35ef8cb25917bfd6cbbd7c2bb55dd4f82131c9cf commit: 35ef8cb25917bfd6cbbd7c2bb55dd4f82131c9cf branch: main author: Brandt Bucher committer: markshannon date: 2024-01-04T11:14:15Z summary: GH-113689: Fix broken handling of invalid executors (GH-113694) files

[Python-checkins] GH-113486: Do not emit spurious PY_UNWIND events for optimized calls to classes. (GH-113680)

2024-01-05 Thread markshannon
https://github.com/python/cpython/commit/0ae60b66dea5140382190463a676bafe706608f5 commit: 0ae60b66dea5140382190463a676bafe706608f5 branch: main author: Mark Shannon committer: markshannon date: 2024-01-05T09:45:22Z summary: GH-113486: Do not emit spurious PY_UNWIND events for optimized calls to

[Python-checkins] GH-113860: All executors are now defined in terms of micro ops. Convert counter executor to use uops. (GH-113864)

2024-01-10 Thread markshannon
https://github.com/python/cpython/commit/a0c9cf9456c2ee7a89d9bd859c07afac8cf5e893 commit: a0c9cf9456c2ee7a89d9bd859c07afac8cf5e893 branch: main author: Mark Shannon committer: markshannon date: 2024-01-10T15:44:34Z summary: GH-113860: All executors are now defined in terms of micro ops. Convert

[Python-checkins] GH-113853: Guarantee forward progress in executors (GH-113854)

2024-01-11 Thread markshannon
https://github.com/python/cpython/commit/55824d01f866d1fa0f21996d897fba0e07d09ac8 commit: 55824d01f866d1fa0f21996d897fba0e07d09ac8 branch: main author: Mark Shannon committer: markshannon date: 2024-01-11T18:20:42Z summary: GH-113853: Guarantee forward progress in executors (GH-113854) files

[Python-checkins] GH-113860: Get rid of `_PyUOpExecutorObject` (GH-113954)

2024-01-12 Thread markshannon
https://github.com/python/cpython/commit/30e6cbdba22d946dacc3f2e19c884b2e1891d58c commit: 30e6cbdba22d946dacc3f2e19c884b2e1891d58c branch: main author: Brandt Bucher committer: markshannon date: 2024-01-12T11:58:23Z summary: GH-113860: Get rid of `_PyUOpExecutorObject` (GH-113954) files: D

[Python-checkins] GH-112354: `_GUARD_IS_TRUE_POP` side-exits to target the next instruction, not themselves. (GH-114078)

2024-01-15 Thread markshannon
https://github.com/python/cpython/commit/ac10947ba79a15bfdaa3ca92c6864214648ab364 commit: ac10947ba79a15bfdaa3ca92c6864214648ab364 branch: main author: Mark Shannon committer: markshannon date: 2024-01-15T11:41:06Z summary: GH-112354: `_GUARD_IS_TRUE_POP` side-exits to target the next

[Python-checkins] GH-121459: Streamline PyObject* to PyStackRef conversions by disallowing NULL pointers. (GH-124894)

2024-10-07 Thread markshannon
https://github.com/python/cpython/commit/d1453f60c2d289d74d535874e07741745b023c90 commit: d1453f60c2d289d74d535874e07741745b023c90 branch: main author: Mark Shannon committer: markshannon date: 2024-10-07T18:13:04+01:00 summary: GH-121459: Streamline PyObject* to PyStackRef conversions by

[Python-checkins] gh-125323: Remove some unsafe Py_DECREFs in bytecodes.c, replacing them with PyStackRef_CLOSEs (GH-125324)

2024-10-14 Thread markshannon
https://github.com/python/cpython/commit/4b358ee647809019813f106eb901f466a3846d98 commit: 4b358ee647809019813f106eb901f466a3846d98 branch: main author: Ken Jin committer: markshannon date: 2024-10-14T09:17:51+01:00 summary: gh-125323: Remove some unsafe Py_DECREFs in bytecodes.c, replacing them

[Python-checkins] GH-120024: Tidy up pycore_stackref.h, splitting into GIL and free-threading sections (GH-125095)

2024-10-09 Thread markshannon
https://github.com/python/cpython/commit/eb18574cc3a0f99fca60b329283d1413abe6eb74 commit: eb18574cc3a0f99fca60b329283d1413abe6eb74 branch: main author: Mark Shannon committer: markshannon date: 2024-10-09T15:43:09+01:00 summary: GH-120024: Tidy up pycore_stackref.h, splitting into GIL and free

[Python-checkins] gh-125039: Make `this_instr`/`prev_instr` const in cases generator (GH-125071)

2024-10-09 Thread markshannon
https://github.com/python/cpython/commit/6b533a659bc8df04daa194d827604dcae14d5801 commit: 6b533a659bc8df04daa194d827604dcae14d5801 branch: main author: Tomas R. committer: markshannon date: 2024-10-09T13:54:39+01:00 summary: gh-125039: Make `this_instr`/`prev_instr` const in cases generator (GH

[Python-checkins] GH-116968: Remove branch from advance_backoff_counter (GH-124469)

2024-10-07 Thread markshannon
https://github.com/python/cpython/commit/f55273b3b7124dc570911724107c2440f37905fc commit: f55273b3b7124dc570911724107c2440f37905fc branch: main author: Mark Shannon committer: markshannon date: 2024-10-07T11:46:33+01:00 summary: GH-116968: Remove branch from advance_backoff_counter (GH-124469

[Python-checkins] GH-125174: Make immortal objects more robust, following design from PEP 683 (GH-125251)

2024-10-10 Thread markshannon
https://github.com/python/cpython/commit/c9014374c50d6ef64786d3e7d9c7e99053d5c9e2 commit: c9014374c50d6ef64786d3e7d9c7e99053d5c9e2 branch: main author: Mark Shannon committer: markshannon date: 2024-10-10T18:19:08+01:00 summary: GH-125174: Make immortal objects more robust, following design

[Python-checkins] GH-125521: Remove `if (true)` from generated output to reduce C compiler warnings (GH-125700)

2024-10-22 Thread markshannon
https://github.com/python/cpython/commit/57e3c59bb64fc2f8b2845a7e03ab0abb029ccd02 commit: 57e3c59bb64fc2f8b2845a7e03ab0abb029ccd02 branch: main author: Mark Shannon committer: markshannon date: 2024-10-22T10:11:29+01:00 summary: GH-125521: Remove `if (true)` from generated output to reduce C

[Python-checkins] GH-125323: Convert DECREF_INPUTS_AND_REUSE_FLOAT into a function that takes PyStackRefs. (GH-125439)

2024-10-14 Thread markshannon
https://github.com/python/cpython/commit/06ca33020e1168459fc6c3e0df93664daf801339 commit: 06ca33020e1168459fc6c3e0df93664daf801339 branch: main author: Mark Shannon committer: markshannon date: 2024-10-14T14:18:57+01:00 summary: GH-125323: Convert DECREF_INPUTS_AND_REUSE_FLOAT into a function

[Python-checkins] GH-125868: Fix STORE_ATTR_WITH_HINT specialization (GH-125876)

2024-10-25 Thread markshannon
https://github.com/python/cpython/commit/b61fece8523d0fa6d9cc6ad3fd855a136c34f0cd commit: b61fece8523d0fa6d9cc6ad3fd855a136c34f0cd branch: main author: Mark Shannon committer: markshannon date: 2024-10-24T11:57:02+01:00 summary: GH-125868: Fix STORE_ATTR_WITH_HINT specialization (GH-125876

[Python-checkins] gh-118423: Add `INSTRUCTION_SIZE` macro to code generator (GH-125467)

2024-10-29 Thread markshannon
https://github.com/python/cpython/commit/aab58a93efd09185e3622572d2624a31e0fe405b commit: aab58a93efd09185e3622572d2624a31e0fe405b branch: main author: Tomas R. committer: markshannon date: 2024-10-29T17:25:05Z summary: gh-118423: Add `INSTRUCTION_SIZE` macro to code generator (GH-125467

[Python-checkins] GH-125515: Reduce number of compiler warnings in generated code (GH-125697)

2024-10-28 Thread markshannon
https://github.com/python/cpython/commit/25441592db179e9f5e6c896d1a691459a23e3422 commit: 25441592db179e9f5e6c896d1a691459a23e3422 branch: main author: Mark Shannon committer: markshannon date: 2024-10-28T10:30:31Z summary: GH-125515: Reduce number of compiler warnings in generated code (GH

[Python-checkins] GH-126547: Pre-assign version numbers for a few common classes (GH-126551)

2024-11-08 Thread markshannon
https://github.com/python/cpython/commit/fa4092259763ffad45a5bb9ef55f515dc6a69ad2 commit: fa4092259763ffad45a5bb9ef55f515dc6a69ad2 branch: main author: Mark Shannon committer: markshannon date: 2024-11-08T16:44:44Z summary: GH-126547: Pre-assign version numbers for a few common classes (GH

[Python-checkins] gh-126072: do not add `None` to `co_consts` if there is no docstring (GH-126101)

2024-10-30 Thread markshannon
https://github.com/python/cpython/commit/35df4eb959b3923c08aaaeff728c5ed1706f31cf commit: 35df4eb959b3923c08aaaeff728c5ed1706f31cf branch: main author: Xuanteng Huang <44627253+xuante...@users.noreply.github.com> committer: markshannon date: 2024-10-30T09:01:09Z summary: gh-126072: do n

[Python-checkins] GH-124284: Add stats for refcount operations on immortal objects (GH-124288)

2024-09-23 Thread markshannon
https://github.com/python/cpython/commit/c87b0e4a462f98c418f750c6c95d4d8715c38332 commit: c87b0e4a462f98c418f750c6c95d4d8715c38332 branch: main author: Mark Shannon committer: markshannon date: 2024-09-23T19:10:55+01:00 summary: GH-124284: Add stats for refcount operations on immortal objects

[Python-checkins] GH-124547: Clear instance dictionary if memory error occurs during object dealloc (GH-124627)

2024-09-27 Thread markshannon
https://github.com/python/cpython/commit/0e21cc6cf820679439d72e3ebd06227ee2a085f9 commit: 0e21cc6cf820679439d72e3ebd06227ee2a085f9 branch: main author: Mark Shannon committer: markshannon date: 2024-09-27T14:51:01-07:00 summary: GH-124547: Clear instance dictionary if memory error occurs during

[Python-checkins] GH-126222: Fix `_PyUop_num_popped` (GH-126507)

2024-11-07 Thread markshannon
https://github.com/python/cpython/commit/85036c8d612007356d2118eb25b460505078b023 commit: 85036c8d612007356d2118eb25b460505078b023 branch: main author: Mark Shannon committer: markshannon date: 2024-11-07T10:48:27Z summary: GH-126222: Fix `_PyUop_num_popped` (GH-126507) files: A Misc/NEWS.d

[Python-checkins] GH-126491: GC: Mark objects reachable from roots before doing cycle collection (GH-126502)

2024-11-18 Thread markshannon
https://github.com/python/cpython/commit/b0fcc2c47a34a69c35c1a8031cd0589d3747c1af commit: b0fcc2c47a34a69c35c1a8031cd0589d3747c1af branch: main author: Mark Shannon committer: markshannon date: 2024-11-18T14:31:26Z summary: GH-126491: GC: Mark objects reachable from roots before doing cycle

[Python-checkins] GH-124567: Replace quadratic assert with linear one (GH-127009)

2024-11-19 Thread markshannon
https://github.com/python/cpython/commit/a99dd23c1f5b9254651d9895714596d5e7942389 commit: a99dd23c1f5b9254651d9895714596d5e7942389 branch: main author: Mark Shannon committer: markshannon date: 2024-11-19T13:38:59Z summary: GH-124567: Replace quadratic assert with linear one (GH-127009) files

[Python-checkins] GH-127010: Don't lazily track and untrack dicts (GH-127027)

2024-11-20 Thread markshannon
https://github.com/python/cpython/commit/aea0c586d181abb897511b6b46d28bfbe4858f79 commit: aea0c586d181abb897511b6b46d28bfbe4858f79 branch: main author: Mark Shannon committer: markshannon date: 2024-11-20T16:41:20Z summary: GH-127010: Don't lazily track and untrack dicts (GH-127027) fil

[Python-checkins] GH-124567: Reduce overhead of debug build for GC. Should help CI performance (GH-126777)

2024-11-15 Thread markshannon
https://github.com/python/cpython/commit/c0f045f7fd3bb7ccf9828f4bfad55347d097fd41 commit: c0f045f7fd3bb7ccf9828f4bfad55347d097fd41 branch: main author: Mark Shannon committer: markshannon date: 2024-11-15T08:59:01Z summary: GH-124567: Reduce overhead of debug build for GC. Should help CI

[Python-checkins] GH-126491: GC: Mark objects reachable from roots before doing cycle collection (GH-127110)

2024-12-02 Thread markshannon
https://github.com/python/cpython/commit/a8dd821d5b25b42c0adeae6642e9b3f9228580f9 commit: a8dd821d5b25b42c0adeae6642e9b3f9228580f9 branch: main author: Mark Shannon committer: markshannon date: 2024-12-02T10:12:17Z summary: GH-126491: GC: Mark objects reachable from roots before doing cycle

[Python-checkins] GH-117759: Update GC docs for incremental collection (GH-126695)

2024-11-14 Thread markshannon
https://github.com/python/cpython/commit/3966d8d626fc9adcdf0663024d4ae6e6be7ef858 commit: 3966d8d626fc9adcdf0663024d4ae6e6be7ef858 branch: main author: Mark Shannon committer: markshannon date: 2024-11-14T09:50:00Z summary: GH-117759: Update GC docs for incremental collection (GH-126695) files

[Python-checkins] GH-126491: Lower heap size limit with faster marking (GH-127519)

2024-12-06 Thread markshannon
https://github.com/python/cpython/commit/023b7d2141467017abc27de864f3f44677768cb3 commit: 023b7d2141467017abc27de864f3f44677768cb3 branch: main author: Mark Shannon committer: markshannon date: 2024-12-06T10:46:59Z summary: GH-126491: Lower heap size limit with faster marking (GH-127519

[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-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-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-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-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-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-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

[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-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-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-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-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-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-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] 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-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: 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-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] 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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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] [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-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] 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-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-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: 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

<    1   2   3   >