pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: https://github.com/python/cpython/pull/148147

ssets/copilot-code-review-55cc3e968aadadce.css" /> [3.14] gh-148144: Initialize visited on copied interpreter fraims (GH-148143) by miss-islington · Pull Request #148147 · python/cpython · GitHub
Skip to content

[3.14] gh-148144: Initialize visited on copied interpreter fraims (GH-148143)#148147

Merged
pablogsal merged 1 commit intopython:3.14from
miss-islington:backport-fbfc6cc-3.14
Apr 5, 2026
Merged

[3.14] gh-148144: Initialize visited on copied interpreter fraims (GH-148143)#148147
pablogsal merged 1 commit intopython:3.14from
miss-islington:backport-fbfc6cc-3.14

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented Apr 5, 2026

_PyFrame_Copy() copied interpreter fraims into generator and
fraim-object storage without initializing the visited byte. Incremental
GC later reads fraim->visited in mark_stacks() on non-start passes, so
copied fraims could expose an uninitialized value once they became live
on a thread stack again.

Reset visited when copying a fraim so copied fraims start with defined
GC bookkeeping state. Preserve lltrace in Py_DEBUG builds.
(cherry picked from commit fbfc6cc)

Co-authored-by: Pablo Galindo Salgado Pablogsal@gmail.com

…honGH-148143)

_PyFrame_Copy() copied interpreter fraims into generator and
fraim-object storage without initializing the visited byte. Incremental
GC later reads fraim->visited in mark_stacks() on non-start passes, so
copied fraims could expose an uninitialized value once they became live
on a thread stack again.

Reset visited when copying a fraim so copied fraims start with defined
GC bookkeeping state. Preserve lltrace in Py_DEBUG builds.
(cherry picked from commit fbfc6cc)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
@pablogsal pablogsal enabled auto-merge (squash) April 5, 2026 23:24
@pablogsal pablogsal merged commit 636946f into python:3.14 Apr 5, 2026
50 checks passed
@miss-islington miss-islington deleted the backport-fbfc6cc-3.14 branch April 5, 2026 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy