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

Reserve handle index 0 in the component model #7661

Merged
merged 1 commit into from
Feb 21, 2024

Commits on Feb 21, 2024

  1. Reserve handle index 0 in the component model

    This commit updates the allocation scheme for resources in the component
    model to start at 1 instead of 0 when communicating with components.
    This is an implementation of WebAssembly/component-model#284.
    
    While this broke a number of tests we have this shouldn't actually break
    any components in practice. The broken tests were all overly-precise in
    their assertions and error messages and this shouldn't idiomatically
    come up in any guest language, so this should not be a practically
    breaking change.
    
    This change additionally places an upper limit on the maximum
    allocatable index at `1 << 30` which is also specified in the above PR.
    alexcrichton committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    6dbd86d View commit details
    Browse the repository at this point in the history