-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Conversation
2be7dc6
to
5984c54
Compare
There was a problem hiding this 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.
`munmap(NULL)` is not noop, like `free(NULL)` is. Fixes an observed testsuite hang on 32-bit ARM systems.
1335c3f
to
7293e79
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Should this be backported to 3.12? I'm guessing yes. |
Thanks @stefanor for the PR, and @ericsnowcurrently for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
`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]>
GH-121589 is a backport of this pull request to the 3.13 branch. |
`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]>
`munmap(NULL)` is not noop, like `free(NULL)` is. Fixes an observed testsuite hang on 32-bit ARM systems.
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. |
`munmap(NULL)` is not noop, like `free(NULL)` is. Fixes an observed testsuite hang on 32-bit ARM systems.
munmap(NULL)
is not noop, likefree(NULL)
is.Fixes an observed testsuite hang on 32-bit ARM systems.