Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-111926: Simplify weakref creation logic#116843

Merged
colesbury merged 2 commits into
python:mainpython/cpython:mainfrom
mpage:gh-111926-simplify-weakref-creationmpage/cpython:gh-111926-simplify-weakref-creationCopy head branch name to clipboard
Mar 15, 2024
Merged

gh-111926: Simplify weakref creation logic#116843
colesbury merged 2 commits into
python:mainpython/cpython:mainfrom
mpage:gh-111926-simplify-weakref-creationmpage/cpython:gh-111926-simplify-weakref-creationCopy head branch name to clipboard

Conversation

@mpage

@mpage mpage commented Mar 14, 2024

Copy link
Copy Markdown
Contributor

Since 3.12 allocating a GC object cannot immediately trigger GC. This allows us to simplify the logic for creating the canonical callback-less weakref.

Since 3.12 allocating a GC object cannot immediately trigger GC. This
allows us to simplify the logic for creating the canonical callback-less
weakref.
@mpage

mpage commented Mar 15, 2024

Copy link
Copy Markdown
Contributor Author

The CIFuzz (memory) failure is unrelated to this PR. It's failing in the same way on other PRs and likely main.

@mpage mpage requested a review from colesbury March 15, 2024 01:36
@mpage mpage marked this pull request as ready for review March 15, 2024 01:37
@colesbury colesbury merged commit 001b21d into python:main Mar 15, 2024
vstinner pushed a commit to vstinner/cpython that referenced this pull request Mar 20, 2024
Since 3.12, allocating a GC object cannot immediately trigger GC. This
allows us to simplify the logic for creating the canonical callback-less
weakref.
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
Since 3.12, allocating a GC object cannot immediately trigger GC. This
allows us to simplify the logic for creating the canonical callback-less
weakref.
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
Since 3.12, allocating a GC object cannot immediately trigger GC. This
allows us to simplify the logic for creating the canonical callback-less
weakref.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.