From 8078218a8c1ba8137636f837a74e13d5cef21e7f Mon Sep 17 00:00:00 2001 From: MaxistheSpy <85330647+MaxistheSpy@users.noreply.github.com> Date: Mon, 17 Aug 2026 01:45:42 -0700 Subject: [PATCH 1/3] Fix perf_trampoline alignment to actually align to 32 bits instead of bytes bit byte confusion here, perf trampoline was previously aligned to 32 bytes, significantly overallocating space per trampoline --- Python/perf_trampoline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/perf_trampoline.c b/Python/perf_trampoline.c index d90b789c2b57126..e374709fff51345 100644 --- a/Python/perf_trampoline.c +++ b/Python/perf_trampoline.c @@ -274,7 +274,7 @@ perf_map_init_state(void) { PyUnstable_PerfMapState_Init(); trampoline_api.code_padding = 0; - trampoline_api.code_alignment = 32; + trampoline_api.code_alignment = 4; perf_trampoline_type = PERF_TRAMPOLINE_TYPE_MAP; return NULL; } From e5743887a6f07f66c926fea55df6bc5912d9b264 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Mon, 17 Aug 2026 08:59:38 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2026-08-17-08-59-37.gh-issue-none.0FwOzm.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Core_and_Builtins/2026-08-17-08-59-37.gh-issue-none.0FwOzm.rst diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2026-08-17-08-59-37.gh-issue-none.0FwOzm.rst b/Misc/NEWS.d/next/Core_and_Builtins/2026-08-17-08-59-37.gh-issue-none.0FwOzm.rst new file mode 100644 index 000000000000000..3268302404f1b42 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2026-08-17-08-59-37.gh-issue-none.0FwOzm.rst @@ -0,0 +1 @@ +Fixed alginment bug with Perf trampolines using perf trampolines should now require slightly less memory From 04875e74b9ba4c8b26a6e3757474199dd6bed619 Mon Sep 17 00:00:00 2001 From: MaxistheSpy <85330647+MaxistheSpy@users.noreply.github.com> Date: Mon, 17 Aug 2026 02:51:30 -0700 Subject: [PATCH 3/3] Delete 2026-08-17-08-59-37.gh-issue-none.0FwOzm.rst --- .../2026-08-17-08-59-37.gh-issue-none.0FwOzm.rst | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Misc/NEWS.d/next/Core_and_Builtins/2026-08-17-08-59-37.gh-issue-none.0FwOzm.rst diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2026-08-17-08-59-37.gh-issue-none.0FwOzm.rst b/Misc/NEWS.d/next/Core_and_Builtins/2026-08-17-08-59-37.gh-issue-none.0FwOzm.rst deleted file mode 100644 index 3268302404f1b42..000000000000000 --- a/Misc/NEWS.d/next/Core_and_Builtins/2026-08-17-08-59-37.gh-issue-none.0FwOzm.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed alginment bug with Perf trampolines using perf trampolines should now require slightly less memory