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-121460: Skip freeing unallocated arenas #121491

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

stefanor
Copy link
Contributor

@stefanor stefanor commented Jul 8, 2024

munmap(NULL) is not noop, like free(NULL) is.

Fixes an observed testsuite hang on 32-bit ARM systems.

@stefanor stefanor force-pushed the skip-unallocated-free branch from 2be7dc6 to 5984c54 Compare July 8, 2024 22:12
Copy link
Member

@ericsnowcurrently ericsnowcurrently left a comment

Choose a reason for hiding this comment

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

Thanks for moving that. I have one last suggestion.

Objects/obmalloc.c Outdated Show resolved Hide resolved
Copy link

cpython-cla-bot bot commented Jul 8, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

`munmap(NULL)` is not noop, like `free(NULL)` is.

Fixes an observed testsuite hang on 32-bit ARM systems.
@stefanor stefanor force-pushed the skip-unallocated-free branch from 1335c3f to 7293e79 Compare July 8, 2024 23:29
Copy link
Member

@nascheme nascheme left a comment

Choose a reason for hiding this comment

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

LGTM.

@ericsnowcurrently
Copy link
Member

Should this be backported to 3.12? I'm guessing yes.

@ericsnowcurrently ericsnowcurrently merged commit a802277 into python:main Jul 10, 2024
37 checks passed
@miss-islington-app
Copy link

Thanks @stefanor for the PR, and @ericsnowcurrently 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 10, 2024
`munmap(NULL)` is not noop, like `free(NULL)` is.

Fixes an observed testsuite hang on 32-bit ARM systems.
(cherry picked from commit a802277)

Co-authored-by: Stefano Rivera <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Jul 10, 2024

GH-121589 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 Jul 10, 2024
ericsnowcurrently pushed a commit that referenced this pull request Jul 10, 2024
`munmap(NULL)` is not noop, like `free(NULL)` is.

Fixes an observed testsuite hang on 32-bit ARM systems.

(cherry picked from commit a802277, AKA gh-121491)

Co-authored-by: Stefano Rivera <[email protected]>
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
`munmap(NULL)` is not noop, like `free(NULL)` is.

Fixes an observed testsuite hang on 32-bit ARM systems.
@stefanor stefanor deleted the skip-unallocated-free branch July 11, 2024 23:02
@stefanor
Copy link
Contributor Author

Should this be backported to 3.12? I'm guessing yes.

The code this touched is present in 3.12, but it's not being called blindly on arenas that may not be in use. So, I don't think 3.12 needs this patch.

estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
`munmap(NULL)` is not noop, like `free(NULL)` is.

Fixes an observed testsuite hang on 32-bit ARM systems.
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