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

Add a feature for disabling GC types #1731

Merged

Conversation

alexcrichton
Copy link
Member

This commit adds support for a new wasm feature named WasmFeatures::GC_TYPES. This does not correspond to any upstream proposal and is intended for use in Wasmtime for disabling the runtime garbage collector at compile time. This serves as a finer-grained switch to disable the runtime dependency at validation time on a garbage collector without disabling all the features that were added in other proposals. For example the reference-types proposal also added support for multi-table which disabling a runtime garbage collector doesn't need to disable.

This commit adds support for a new wasm feature named
`WasmFeatures::GC_TYPES`. This does not correspond to any upstream
proposal and is intended for use in Wasmtime for disabling the runtime
garbage collector at compile time. This serves as a finer-grained switch
to disable the runtime dependency at validation time on a garbage
collector without disabling all the features that were added in other
proposals. For example the `reference-types` proposal also added support
for multi-table which disabling a runtime garbage collector doesn't need
to disable.
@alexcrichton
Copy link
Member Author

This is additionally borne out of discussion on WebAssembly/tool-conventions#233 where this seems like the best way forward for the "no gc at compile time" mode for Wasmtime.

@alexcrichton alexcrichton added this pull request to the merge queue Aug 21, 2024
Merged via the queue into bytecodealliance:main with commit c5bd644 Aug 21, 2024
28 checks passed
@alexcrichton alexcrichton deleted the disable-gc-types-flag branch August 21, 2024 19:52
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