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(swc/plugin_macro): do not dupe free guest memory #3732

Merged
merged 2 commits into from Feb 25, 2022

Conversation

kwonoj
Copy link
Member

@kwonoj kwonoj commented Feb 24, 2022

Description:

Peeking execution path, I realized I left over _volatile fn in macro when I updated return value logic from multivalue to calling imported fn from host. This change removed logic host allocates byte for returned value that guest no longer need manually free, instead rust will drop allocated serialized bytes accordingly.

Related issue (if exists):

#3598 (comment)

Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

LGTM.


swc-bump:

  • swc_plugin_macro

@kdy1 kdy1 enabled auto-merge (squash) February 25, 2022 01:44
@kdy1 kdy1 added this to the v1.2.146 milestone Feb 25, 2022
@kdy1 kdy1 merged commit d8b0166 into swc-project:main Feb 25, 2022
@kwonoj kwonoj deleted the plugin-guest-redundant-dealloc branch February 25, 2022 02:40
@swc-project swc-project locked as resolved and limited conversation to collaborators Oct 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

None yet

3 participants