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 context memory leak #10680

Merged
merged 2 commits into from
Sep 12, 2017
Merged

Fix context memory leak #10680

merged 2 commits into from
Sep 12, 2017

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Sep 12, 2017

This ensures we always pop the root context. Fixes a memory leak when unmountComponentAtNode() leaves reference to the tree via the context stack.

Verified by putting a breakpoint in unmountComponentAtNode and checking the context stack (which is now nulled).

@gaearon gaearon added this to the 16.0 milestone Sep 12, 2017
@gaearon gaearon requested review from bvaughn, sebmarkbage and acdlite and removed request for bvaughn and acdlite September 12, 2017 16:01
@gaearon
Copy link
Collaborator Author

gaearon commented Sep 12, 2017

Got confirmation this actually fixes the leak in Marketplace.

Copy link
Collaborator

@sophiebits sophiebits left a comment

Choose a reason for hiding this comment

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

Is there a task number?

@gaearon
Copy link
Collaborator Author

gaearon commented Sep 12, 2017

If I understand correctly, 21712891.

@gaearon gaearon merged commit 65b9ad9 into facebook:master Sep 12, 2017
@gaearon gaearon deleted the context-fix branch September 13, 2017 21:22
@bvaughn bvaughn mentioned this pull request Sep 14, 2017
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.

4 participants