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

Fix heap growth in Host.swift #1320

Merged
merged 2 commits into from
Nov 23, 2017

Conversation

swizzlr
Copy link
Contributor

@swizzlr swizzlr commented Nov 15, 2017

This commit ensures that the resolve functionality only calculates
addresses and names once, as appears to be originally intended.
Furthermore, this mitigates a bug where addresses would be endlessly
appended to the addresses array, causing long term unbounded heap
growth.

--

Am I correct in thinking this needs to go to master, then cherry-picked into 4.1 and 4.0? I couldn't find any docs in the contributing guidelines about branch structure.

This commit ensures that the `resolve` functionality only calculates
addresses and names once, as appears to be originally intended.
Furthermore, this mitigates a bug where addresses would be endlessly
appended to the `addresses` array, causing long term unbounded heap
growth.
@spevans
Copy link
Contributor

spevans commented Nov 15, 2017

@swift-ci please test

@spevans
Copy link
Contributor

spevans commented Nov 15, 2017

@swizzlr PRs merged into master currently get auto-merged into the 4.1 branch.

@swizzlr
Copy link
Contributor Author

swizzlr commented Nov 16, 2017

@spevans Shall I open one against 4.0? I don't know if a new patch release is scheduled, but it seems like a small enough change to warrant inclusion.

@ianpartridge
Copy link
Contributor

Can we add a test too?

@swizzlr
Copy link
Contributor Author

swizzlr commented Nov 16, 2017

@ianpartridge Sure.

@swizzlr swizzlr changed the title Ensure resolution occurs once; fix SR-6391. Fix heap growth in Host.swifn Nov 16, 2017
@swizzlr swizzlr changed the title Fix heap growth in Host.swifn Fix heap growth in Host.swift Nov 16, 2017
@spevans
Copy link
Contributor

spevans commented Nov 16, 2017

@swift-ci please test

@swizzlr
Copy link
Contributor Author

swizzlr commented Nov 16, 2017

@ianpartridge added some tests, and realized the bug wasn't fixed for remote hosts, so fixed that too.

Let me know if you want me to squash.

@alblue
Copy link
Contributor

alblue commented Nov 16, 2017

@swift-ci please test

@alblue
Copy link
Contributor

alblue commented Nov 22, 2017

@swift-ci please test and merge

1 similar comment
@alblue
Copy link
Contributor

alblue commented Nov 23, 2017

@swift-ci please test and merge

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.

5 participants