Skip to content

gh-118846: Fix PGO tests in free-threaded build#118862

Merged
colesbury merged 1 commit into
python:mainfrom
colesbury:gh-118846-pgo-tests
May 9, 2024
Merged

gh-118846: Fix PGO tests in free-threaded build#118862
colesbury merged 1 commit into
python:mainfrom
colesbury:gh-118846-pgo-tests

Conversation

@colesbury

@colesbury colesbury commented May 9, 2024

Copy link
Copy Markdown
Contributor

Avoid immortalizing objects in tests that verify garbage collection of classes or modules.

This fixes test_ordered_dict and test_struct.

Avoid immortalizing objects in some tests that test behavior of
collecting classes or modules.

This fixes test_ordered_dict and test_struct.
@colesbury

Copy link
Copy Markdown
Contributor Author

cc @hroncok - I'll look at the other tests next, but this should be enough to fix the PGO build.

@hroncok

hroncok commented May 9, 2024

Copy link
Copy Markdown
Contributor

but this should be enough to fix the PGO build.

Indeed it is. Thanks.

@DinoV DinoV left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@colesbury colesbury merged commit 1b1db2f into python:main May 9, 2024
@miss-islington-app

Copy link
Copy Markdown

Thanks @colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@colesbury colesbury deleted the gh-118846-pgo-tests branch May 9, 2024 20:06
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 9, 2024
Avoid immortalizing objects in tests that verify garbage collection of
classes or modules.

This fixes test_ordered_dict and test_struct.
(cherry picked from commit 1b1db2f)

Co-authored-by: Sam Gross <colesbury@gmail.com>
@bedevere-app

bedevere-app Bot commented May 9, 2024

Copy link
Copy Markdown

GH-118867 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label May 9, 2024
colesbury added a commit that referenced this pull request May 9, 2024
…118867)

Avoid immortalizing objects in tests that verify garbage collection of
classes or modules.

This fixes test_ordered_dict and test_struct.
(cherry picked from commit 1b1db2f)

Co-authored-by: Sam Gross <colesbury@gmail.com>
SonicField pushed a commit to SonicField/cpython that referenced this pull request May 10, 2024
Avoid immortalizing objects in tests that verify garbage collection of
classes or modules.

This fixes test_ordered_dict and test_struct.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants