Enable copy-on-write heap initialization by default (#3825)
* Enable copy-on-write heap initialization by default This commit enables the `Config::memfd` feature by default now that it's been fuzzed for a few weeks on oss-fuzz, and will continue to be fuzzed leading up to the next release of Wasmtime in early March. The documentation of the `Config` option has been updated as well as adding a CLI flag to disable the feature. * Remove ubiquitous "memfd" terminology Switch instead to forms of "memory image" or "cow" or some combination thereof. * Update new option names
This commit is contained in:
@@ -59,7 +59,7 @@ default = [
|
||||
'parallel-compilation',
|
||||
'cranelift',
|
||||
'pooling-allocator',
|
||||
'memfd',
|
||||
'memory-init-cow',
|
||||
'vtune',
|
||||
]
|
||||
|
||||
@@ -101,10 +101,10 @@ all-arch = ["wasmtime-cranelift/all-arch"]
|
||||
# need portable signal handling.
|
||||
posix-signals-on-macos = ["wasmtime-runtime/posix-signals-on-macos"]
|
||||
|
||||
# Enables, on Linux, the usage of memfd mappings to enable instantiation to use
|
||||
# copy-on-write to initialize linear memory for wasm modules which have
|
||||
# compatible linear memories.
|
||||
# Enables, on supported platforms, the usage of copy-on-write initialization of
|
||||
# compatible linear memories. For more information see the documentation of
|
||||
# `Config::memory_init_cow`.
|
||||
#
|
||||
# Enabling this feature has no effect on non-Linux platforms or when the `uffd`
|
||||
# feature is enabled.
|
||||
memfd = ["wasmtime-runtime/memfd"]
|
||||
# Enabling this feature has no effect on unsupported platforms or when the
|
||||
# `uffd` feature is enabled.
|
||||
memory-init-cow = ["wasmtime-runtime/memory-init-cow"]
|
||||
|
||||
Reference in New Issue
Block a user