You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Pat Hickey
c736c712e5
wasmtime: add EngineWeak which has ::upgrade, created by Engine::weak ( #7797 )
* wasmtime: add EngineWeak which has ::upgrade, created by Engine::weak
Engine is, internally, just an Arc<EngineInner>, so this is trivial to implement -
EngineWeak is a Weak<EngineInner>.
This behavior is desirable because `Engine::increment_epoch` typically
happens in a worker thread, which in turn requires additional machinery
to discard the `Engine` once it is no longer needed. If instead the
worker thread holds an `EngineWeak`, it can stop ticking when all
consumers of the `Engine` have dropped it. This has been documented as a
suggestion in `increment_epoch`.
For an example of additional machinery which is simplified by this change, see 25edee0700/lib/src/execute.rs (L108-L116))
Co-authored-by: John Van Enk <vanenkj@gmail.com>
* add a test
---------
Co-authored-by: John Van Enk <vanenkj@gmail.com>
10 months ago
..
asm-macros
Refactor test-programs to build modules and components (#6385)
1 year ago
bench-api
Configure workspace lints, enable running some Clippy lints on CI (#7561)
12 months ago
c-api
Bump Wasmtime to 18.0.0 (#7751)
10 months ago
cache
Configure workspace lints, enable running some Clippy lints on CI (#7561)
12 months ago
cli-flags
mpk: add `--memory-protection-keys` to the CLI options (#7788)
10 months ago
component-macro
Rename generated structures to `Guest` in bindgen (#7794)
10 months ago
component-util
Leverage Cargo's workspace inheritance feature (#4905)
2 years ago
cranelift
Consolidate platform-specific definitions in Wasmtime (#7626)
11 months ago
cranelift-shared
Configure workspace lints, enable running some Clippy lints on CI (#7561)
12 months ago
environ
Remove `wasmtime-jit` (#7769)
10 months ago
explorer
Configure workspace lints, enable running some Clippy lints on CI (#7561)
12 months ago
fiber
add clang format (#7601)
11 months ago
fuzzing
Update the wasm-tools family of crates (#7764)
10 months ago
jit-debug
Configure workspace lints, enable running some Clippy lints on CI (#7561)
12 months ago
jit-icache-coherence
Configure workspace lints, enable running some Clippy lints on CI (#7561)
12 months ago
misc
Configure workspace lints, enable running some Clippy lints on CI (#7561)
12 months ago
runtime
mpk: allow benchmarking MPK (#7787)
10 months ago
test-programs
wasi implementations: use rc-2024-01-16 for sockets, cli, http (#7781)
10 months ago
types
Update the wasm-tools family of crates (#7764)
10 months ago
versioned-export-macros
Dependency gardening for Wasmtime (#6731)
1 year ago
wasi
Make wasmtime dependency in wiggle and wasi-common optional with a default feature (#7792)
10 months ago
wasi-common
Make wasmtime dependency in wiggle and wasi-common optional with a default feature (#7792)
10 months ago
wasi-http
wasi implementations: use rc-2024-01-16 for sockets, cli, http (#7781)
10 months ago
wasi-nn
wasi-nn: update openvino-rs to 0.6.0 (#7729)
10 months ago
wasi-preview1-component-adapter
wasi implementations: use rc-2024-01-16 for sockets, cli, http (#7781)
10 months ago
wasi-threads
Configure workspace lints, enable running some Clippy lints on CI (#7561)
12 months ago
wasmtime
wasmtime: add EngineWeak which has ::upgrade, created by Engine::weak (#7797)
10 months ago
wast
feat(wasmtime): allow definition of dynamic resource types in the linker (#7680)
11 months ago
wiggle
Make wasmtime dependency in wiggle and wasi-common optional with a default feature (#7792)
10 months ago
winch
Update the wasm-tools family of crates (#7587)
12 months ago
wit-bindgen
Rename generated structures to `Guest` in bindgen (#7794)
10 months ago
wmemcheck
Configure workspace lints, enable running some Clippy lints on CI (#7561)
12 months ago