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

Do not cache the instruction builder for replay execution #2170

Merged
merged 3 commits into from
Sep 4, 2018

Conversation

Qining
Copy link
Contributor

@Qining Qining commented Aug 29, 2018

Without this CL, a builder is kept as the closures for postback decoders and notification readers capture the builder, so the instructions and other intermediate stuffs will be kept alive to the end of the replay execution. This CL fixes this issue.

Qining added 3 commits August 31, 2018 14:46
The builder will be kept alive until the replay is done on the device,
while the encoded instructions and resources can be freed before the
replay gets started.
@Qining Qining changed the title Reduce peak memory usage by clearing encoded instructions in builder Do not cache the instruction builder for replay execution Aug 31, 2018
@Qining Qining merged commit cdfd015 into google:master Sep 4, 2018
@Qining Qining deleted the clear-builder branch October 23, 2018 17:32
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.

2 participants