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

backport 1.11: fix _growbeg! unncessary resizing (#56029) #56090

Merged

Conversation

dpinol
Copy link

@dpinol dpinol commented Oct 10, 2024

This was very explicitly designed such that if there was a bunch of extra space at the end of the array, we would copy rather than allocating, but by making newmemlen be at least
overallocation(memlen) rather than overallocation(len), this branch was never hit. found by #56026

(cherry picked from commit d4ca92c)

This was very explicitly designed such that if there was a bunch of
extra space at the end of the array, we would copy rather than
allocating, but by making `newmemlen` be at least
`overallocation(memlen)` rather than `overallocation(len)`, this branch
was never hit. found by JuliaLang#56026
@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Oct 10, 2024
@mbauman mbauman changed the title fix _growbeg! unncessary resizing (#56029) backport 1.11: fix _growbeg! unncessary resizing (#56029) Oct 10, 2024
@fatteneder fatteneder merged commit c092d36 into JuliaLang:backports-release-1.11 Oct 10, 2024
8 checks passed
@fatteneder fatteneder removed the merge me PR is reviewed. Merge when all tests are passing label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants