Skip to content

Avoid OOM errors when event traffic is high #1376

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

Merged
merged 1 commit into from
Aug 3, 2021
Merged

Conversation

nshahan
Copy link
Contributor

@nshahan nshahan commented Aug 2, 2021

Revert to attaching the IsolateRef instead of the Isolate to the postEvent
and registerExtension events. The Isolate is much larger and was causing
systems to run out of memory when event traffic is high like in Flutter
where they are sent on every animation frame.

See: flutter/flutter#87100

Revert to attaching the IsolateRef instead of the Isolate to the postEvent
and registerExtension events. The Isolate is much larger and was causing
systems to run out of memory when event traffic was high like in Flutter
where they are sent on every animation frame.

See: flutter/flutter#87100
@nshahan nshahan requested review from grouma, annagrin and bkonyi August 2, 2021 23:14
@google-cla google-cla bot added the cla: yes label Aug 2, 2021
Copy link
Contributor

@annagrin annagrin left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Collaborator

@bkonyi bkonyi left a comment

Choose a reason for hiding this comment

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

LGTM! In general, we should be sending reference types for high-traffic events, so this is perfect. Thanks!

@annagrin
Copy link
Contributor

annagrin commented Aug 3, 2021

Merging this so we can deliver the fix to flutter soon.

@annagrin annagrin merged commit b5f1214 into master Aug 3, 2021
@natebosch natebosch deleted the fix-oom-errors branch August 3, 2021 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants