Skip to content

gh-121583: Remove dependency from pystats.h to internal header file - #121587

Merged
brandtbucher merged 3 commits into
python:mainfrom
mdboom:fix-pystats-extensions
Jul 16, 2024
Merged

brandtbucher merged 3 commits into
python:mainfrom
mdboom:fix-pystats-extensions

Conversation

@mdboom

@mdboom mdboom commented Jul 10, 2024 •

Copy link
Copy Markdown
Contributor

This just uses a fixed number of slots for recording uops stats that is enforced to be big enough.

Alternatively, we could generate the correct number and put it in a public header, but that seems like overkill.

@ZeroIntensity ZeroIntensity left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should follow PEP 7.

Comment thread Include/cpython/pystats.h Outdated
Comment thread Include/cpython/pystats.h Outdated
mdboom and others added 2 commits July 10, 2024 11:32
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>

@brandtbucher brandtbucher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @mdboom! I'm going to go ahead and land this.

@brandtbucher brandtbucher self-assigned this Jul 16, 2024
@brandtbucher
brandtbucher merged commit f036a46 into python:main Jul 16, 2024
@miss-islington-app

Copy link
Copy Markdown

Thanks @mdboom for the PR, and @brandtbucher for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 16, 2024
…file (pythonGH-121587)

(cherry picked from commit f036a46)

Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
@bedevere-app

bedevere-app Bot commented Jul 16, 2024

Copy link
Copy Markdown

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Jul 16, 2024
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.

3 participants