Skip to content

Commit 40eea8e

Browse files
authored
Enable the memory64 proposal by default (bytecodealliance#9937)
The memory64 proposal for WebAssembly moved to phase 4 early last November which was the final remaining blocker for enabling it in Wasmtime. I've gone ahead and enabled it here with all the other checkboxes being ticked such as: * Tests - all spec tests are enabled and we have a few tests here and there for memory64 behavior throughout the unit test suite. * Finished - this proposal's memory-facing bits have been done for quite some time and the final 64-bit table bits have been done for a bit now as well. * Fuzzed - this is enabled in `wasm-smith` and additionally has custom fuzzing via the `memory_accesses` fuzzer. * API - all APIs related to memory work with `u64` values to accommodate 64-bit memories and the 64-bit-ness is reflected in the type of memories. * C API - the C API's functions for working with memories all reflect 64-bit indices like the Rust API.
1 parent 4c5f250 commit 40eea8e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

crates/wasmtime/src/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,6 +2023,7 @@ impl Config {
20232023
features |= WasmFeatures::RELAXED_SIMD;
20242024
features |= WasmFeatures::TAIL_CALL;
20252025
features |= WasmFeatures::EXTENDED_CONST;
2026+
features |= WasmFeatures::MEMORY64;
20262027
// NB: if you add a feature above this line please double-check
20272028
// https://docs.wasmtime.dev/stability-wasm-proposals.html
20282029
// to ensure all requirements are met and/or update the documentation

docs/stability-wasm-proposals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ column is below.
2626
| [`threads`] |||[^9] |[^3] |||
2727
| [`tail-call`] |||||||
2828
| [`extended-const`] |||||||
29+
| [`memory64`] |||||||
2930

3031
[^1]: The `component-model` proposal is not at phase 4 in the standardization
3132
process but it is still enabled-by-default in Wasmtime.
@@ -45,7 +46,6 @@ column is below.
4546

4647
| Proposal | Phase 4 | Tests | Finished | Fuzzed | API | C API |
4748
|--------------------------|---------|-------|----------|--------|-----|-------|
48-
| [`memory64`] |||||||
4949
| [`function-references`] |||||||
5050
| [`gc`] [^6] |||[^7] ||||
5151
| [`wide-arithmetic`] |||||||

0 commit comments

Comments
 (0)