Skip to content

Fix DataFlowOpts leaking temporary Functions#3093

Merged
dcodeIO merged 1 commit intoWebAssembly:masterfrom
dcodeIO:dfo-leak
Sep 2, 2020
Merged

Fix DataFlowOpts leaking temporary Functions#3093
dcodeIO merged 1 commit intoWebAssembly:masterfrom
dcodeIO:dfo-leak

Conversation

@dcodeIO
Copy link
Contributor

@dcodeIO dcodeIO commented Sep 2, 2020

Fixes DataFlowOpts leaking allocated temporary functions created to precompute an expression as their body. Reusing the body afterwards is fine because expressions are arena allocated.

@dcodeIO
Copy link
Contributor Author

dcodeIO commented Sep 2, 2020

because expressions are arena allocated.

Dangerous half-knowledge, might be wrong.

Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

lgtm and correct about arena allocation of the body (assuming the arena is properly handled, which I believe it is).

@dcodeIO dcodeIO merged commit ef7ab77 into WebAssembly:master Sep 2, 2020
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