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: isolate runtime states per component instance #446

Merged

Conversation

kateinoigakukun
Copy link
Contributor

Thanks to no-reentrancy of CM, we can safely share the runtime state within a component instantiation closure. However, we cannot share the state across different component instances created by different instantiate calls.

This commit fixes the issue by moving all the runtime states under the instantiate scope.

Thanks to no-reentrancy of CM, we can safely share the runtime state
within a component instantiation closure. However, we cannot share the
state across different component instances created by different
`instantiate` calls.

This commit fixes the issue by moving all the runtime states under the
`instantiate` scope.
@guybedford guybedford merged commit 6e5849b into bytecodealliance:main Jun 5, 2024
16 checks passed
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