Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-129430: Make walking vm regions more efficient in MacOS #129494

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

pablogsal
Copy link
Member

@pablogsal pablogsal commented Jan 31, 2025

Turns out the proc_regionfilename is very expensive in Intel mac when compiled with ASAN for some reason as this creates tons of VM regions and that call is very costly. To avoid unnecessary lookups, check first if the section are READ/WRITE before checking for the region filename

@pablogsal pablogsal added 🔨 test-with-buildbots Test PR w/ buildbots; report in status section and removed awaiting core review labels Jan 31, 2025
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @pablogsal for commit 1ddc75b 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F30617%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-app bedevere-app bot added the tests Tests in the Lib/test dir label Jan 31, 2025
@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jan 31, 2025
@pablogsal
Copy link
Member Author

Ok seems that with this PR test_external_inspection passes immediately on the affected ASAN MacOS build bots. The rest of the failures are unrelated so I am landing this one

@pablogsal pablogsal added skip news type-bug An unexpected behavior, bug, or error labels Jan 31, 2025
@pablogsal pablogsal merged commit 7eaef74 into python:main Jan 31, 2025
101 of 128 checks passed
@pablogsal pablogsal deleted the gh-129430-1 branch January 31, 2025 14:08
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants