commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
108f7917c84401ecb6cb86e91591f7423ac94314 | bjorn3 | 2023-03-10T19:33:56 | Support plugging external profilers into the Cranelift timing infrastructure (#5749)
* Remove no-std code for cranelift_codegen::timings
no-std mode isn't supported by Cranelift anymore
* Simplify define_passes macro
* Add egraph opt timings
* Replace the add_to_current api with PassTimes::add
* Omit a couple of ... | diff --git a/cranelift/codegen/src/context.rs b/cranelift/codegen/src/context.rs
index 94c5722fd..bd8ae3b64 100644
--- a/cranelift/codegen/src/context.rs
+++ b/cranelift/codegen/src/context.rs
@@ -213,7 +213,6 @@ impl Context {
///
/// Returns information about the function's code and read-only data.
pub... | 5 | 168 | 168 |
0751cba6e2b9087ca3e9ecaeac5cbfc8e4b7305a | Alex Crichton | 2023-03-10T17:58:02 | Add a `--dynamic-memory-reserved-for-growth` CLI flag (#5980)
Maps to the corresponding `wasmtime::Config` option. The motivation here
is largely completeness and was something I was looking into with the
failures in #5970 | diff --git a/crates/cli-flags/src/lib.rs b/crates/cli-flags/src/lib.rs
index 3488096ac..cb9f0ef82 100644
--- a/crates/cli-flags/src/lib.rs
+++ b/crates/cli-flags/src/lib.rs
@@ -196,6 +196,11 @@ pub struct CommonOptions {
#[clap(long, value_name = "SIZE")]
pub dynamic_memory_guard_size: Option<u64>,
+ ///... | 1 | 8 | 0 |
e64fb6ab39e75cf7bd573e20651365787a9f5bb2 | Afonso Bordado | 2023-03-10T11:43:27 | riscv64: Fix underflow in call relocation handling (#5951)
Under some test case layouts the call relocation
panicking with an underflow. Use `wrapping_sub` to
signal that this is expected.
The fuzzer took a while to generate such a test case.
And I can't introduce it as a regression test because
when running via the ... | diff --git a/cranelift/jit/src/compiled_blob.rs b/cranelift/jit/src/compiled_blob.rs
index 7c60454e7..652f4bd97 100644
--- a/cranelift/jit/src/compiled_blob.rs
+++ b/cranelift/jit/src/compiled_blob.rs
@@ -120,10 +120,18 @@ impl CompiledBlob {
// See https://github.com/riscv-non-isa/riscv-elf-psabi-... | 1 | 11 | 3 |
8a2bf294442a17c105ca1b342180edfe719e9de4 | Nick Fitzgerald | 2023-03-09T20:04:51 | wasmtime: Privately expose a module's address map and its function's bytes (#5973)
This will allow us to build developer tools for Wasmtime and Cranelift like WAT
and asm side-by-side viewers (a la Godbolt).
These are not proper public APIs, so they are marked `doc(hidden)` and have
comments saying they are only for ... | diff --git a/crates/environ/src/address_map.rs b/crates/environ/src/address_map.rs
index 7a219543f..c55250113 100644
--- a/crates/environ/src/address_map.rs
+++ b/crates/environ/src/address_map.rs
@@ -116,6 +116,23 @@ impl AddressMapSection {
}
}
+/// Parse an `ELF_WASMTIME_ADDRMAP` section, returning the slice... | 2 | 106 | 9 |
d4df7eb909a0743c9497fe0e44ce03aedc2faf87 | Pat Hickey | 2023-03-08T21:42:20 | drop cli- prefix from reactor, command features & artifact names | diff --git a/src/lib.rs b/src/lib.rs
index 42cc3d313..a8919b73c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -16,16 +16,14 @@ use poll::Pollable;
use streams::{InputStream, OutputStream};
use wasi::*;
-#[cfg(all(feature = "cli-command", feature = "cli-reactor"))]
-compile_error!(
- "only one of the `cli-command` ... | 1 | 6 | 8 |
8a6e1e7cd3a94e712c707ded09bd252e1844edf0 | Pat Hickey | 2023-03-08T21:42:20 | drop cli- prefix from reactor, command features & artifact names | diff --git a/test-programs/macros/build.rs b/test-programs/macros/build.rs
index 16d05b315..726d56850 100644
--- a/test-programs/macros/build.rs
+++ b/test-programs/macros/build.rs
@@ -35,11 +35,9 @@ fn build_adapter(name: &str, features: &[&str]) -> Vec<u8> {
fn main() {
let out_dir = PathBuf::from(env::var_os("... | 1 | 5 | 7 |
8a08fedc692dc7e5189db6acade8d85d179ea915 | Alex Crichton | 2023-03-08T21:42:03 | components: Assert sizes match `wit-parser` sizes (#5943)
I was debugging [an issue] recently where it appears that the underlying
cause was a discrepancy in the size/align of a WIT type between Wasmtime
and `wit-parser`. This commit adds compile-time assertions that the size
of a WIT type is the same with `wit-parser... | diff --git a/crates/wit-bindgen/src/lib.rs b/crates/wit-bindgen/src/lib.rs
index eb4753f0f..1fc04d68e 100644
--- a/crates/wit-bindgen/src/lib.rs
+++ b/crates/wit-bindgen/src/lib.rs
@@ -32,6 +32,7 @@ struct Wasmtime {
imports: Vec<Import>,
exports: Exports,
types: Types,
+ sizes: SizeAlign,
}
enum ... | 1 | 32 | 3 |
e8331661cb9bd29fbaa04f75a51ce5cc295fba2f | Alex Crichton | 2023-03-08T17:13:28 | Add `Clone for component::InstancePre` (#5966)
This is present on `wasmtime::InstancePre` and should be available for
components as well.
Closes #5965 | diff --git a/crates/wasmtime/src/component/instance.rs b/crates/wasmtime/src/component/instance.rs
index 39853e330..81c526c1c 100644
--- a/crates/wasmtime/src/component/instance.rs
+++ b/crates/wasmtime/src/component/instance.rs
@@ -194,6 +194,7 @@ struct Instantiator<'a> {
imports: &'a PrimaryMap<RuntimeImportInd... | 1 | 12 | 0 |
684bebbfddc8d89290485931ac74c1b1f205983e | Dan Gohman | 2022-03-08T16:20:13 | Minor code simplification. | diff --git a/src/lib.rs b/src/lib.rs
index e92195979..42cc3d313 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -2724,17 +2724,16 @@ impl State {
let (arg_preopens, env_preopens) = self.get_preopens();
// Subtract 3 or the stdio indices to compute the preopen index.
- let index = fd.checked_sub(3... | 1 | 3 | 4 |
7d482345fbeb790d4b5a77c6473faf94c51fddb2 | Trevor Elliott | 2023-03-08T05:00:15 | Restrict fcvt_to_uint and fcvt_to_sint to produce scalar integers (#5956)
* Restrict fcvt_to_uint and fcvt_to_sint to produce scalar integers
* Review feedback | diff --git a/cranelift/codegen/meta/src/shared/instructions.rs b/cranelift/codegen/meta/src/shared/instructions.rs
index 6aa4f5509..372407965 100755
--- a/cranelift/codegen/meta/src/shared/instructions.rs
+++ b/cranelift/codegen/meta/src/shared/instructions.rs
@@ -3245,15 +3245,6 @@ pub(crate) fn define(
);
... | 1 | 14 | 9 |
63ae90ffdd2e16fd70c1a70066a512f5d7cf2c9b | Dan Gohman | 2023-03-08T02:42:28 | Support command-line argument preopens. | diff --git a/host/tests/command.rs b/host/tests/command.rs
index 24aa01a72..d03547b8d 100644
--- a/host/tests/command.rs
+++ b/host/tests/command.rs
@@ -269,6 +269,31 @@ async fn run_file_read(mut store: Store<WasiCtx>, wasi: Command) -> Result<()> {
.map_err(|()| anyhow::anyhow!("command returned with failing exi... | 2 | 47 | 0 |
bb86a3ea6b66b057031abcf93b27908c8f4221d6 | Dan Gohman | 2023-03-08T02:42:28 | Support command-line argument preopens. | diff --git a/src/lib.rs b/src/lib.rs
index 76b7784b2..e92195979 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -81,6 +81,12 @@ pub unsafe extern "C" fn main(
}
state.args = Some(slice::from_raw_parts(args_ptr, args_len));
+ // Initialize `arg_preopens`.
+ let preopens: &'static [Preopen] ... | 2 | 57 | 22 |
6771d587f565649a9f511e0dfd110fff1bb8d007 | Dan Gohman | 2023-02-27T23:47:56 | Update to the latest wit files.
This updates to the latest wasi-filesystem, wasi-sockets, wasi-io, and
wasi-cli wit changes, except for two things:
- `filesystem.types` is temporarily still named `filesystem.filesystem`, to
work around bytecodealliance/wasmtime#5961
- wasi-stderr is temporarily still present, fo... | diff --git a/host/Cargo.toml b/host/Cargo.toml
index 756315cfe..baa4043f3 100644
--- a/host/Cargo.toml
+++ b/host/Cargo.toml
@@ -11,7 +11,7 @@ cap-std = { workspace = true }
cap-rand = { workspace = true }
tokio = { version = "1.22.0", features = [ "rt", "macros" ] }
tracing = { workspace = true }
-wasmtime = { git ... | 6 | 142 | 96 |
6019641ed9b86d655682da6ecea02cbfe8b906f9 | Dan Gohman | 2023-02-27T23:47:56 | Update to the latest wit files.
This updates to the latest wasi-filesystem, wasi-sockets, wasi-io, and
wasi-cli wit changes, except for two things:
- `filesystem.types` is temporarily still named `filesystem.filesystem`, to
work around bytecodealliance/wasmtime#5961
- wasi-stderr is temporarily still present, fo... | diff --git a/src/lib.rs b/src/lib.rs
index 5072fe777..76b7784b2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -27,17 +27,17 @@ mod macros;
mod bindings {
#[cfg(feature = "cli-command")]
wit_bindgen::generate!({
- world: "cli",
+ world: "command",
std_feature,
raw_strings,
... | 1 | 12 | 12 |
34aaaa7f15237671d0235f16ce64af8c554050fa | Pat Hickey | 2023-03-08T00:47:44 | code motion: cli related feature names (#104)
* rename host runtime tests to command tests
* add a test for using wasi in a reactor
* commit cargo.lock
* reactor tests: fix wit deps
* test-programs: reactor-tests can build on stable
note that this fails because it exposes wasi-libc ctors calling import
... | diff --git a/src/lib.rs b/src/lib.rs
index 4164bb6db..5072fe777 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -16,11 +16,16 @@ use poll::Pollable;
use streams::{InputStream, OutputStream};
use wasi::*;
+#[cfg(all(feature = "cli-command", feature = "cli-reactor"))]
+compile_error!(
+ "only one of the `cli-command` ... | 1 | 8 | 3 |
d9cdbef920657643f8d0021b19bc1d293f55405d | Nick Fitzgerald | 2023-03-07T23:22:33 | Fix typo in `Config::generate_address_map` docs (#5958) | diff --git a/crates/wasmtime/src/config.rs b/crates/wasmtime/src/config.rs
index 44c3367fa..9690daeb6 100644
--- a/crates/wasmtime/src/config.rs
+++ b/crates/wasmtime/src/config.rs
@@ -1367,7 +1367,7 @@ impl Config {
/// Configures whether compiled artifacts will contain information to map
/// native program ... | 1 | 1 | 1 |
e2dcb19099606f161c6d6145ba71130579b452e2 | Qinxuan Chen | 2023-03-07T15:21:48 | deps: update criterion dependency to v0.4.0 (#5935) | diff --git a/Cargo.lock b/Cargo.lock
index 85544b31f..ff424b79a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -78,6 +78,12 @@ version = "0.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec8ad6edb4840b78c5c3d88de606b22252d552b55f3a4699fbb10fc070ec3049"
+[[package]]
+name = "anes"
+ve... | 4 | 52 | 80 |
a2beacd288d343ba96f53be3b8705ed2b67a7430 | Jan-Justin van Tonder | 2023-03-07T00:06:19 | cranelift-interpreter: Add trap on misaligned memory accesses (#5921)
* Add checks to `InterpreterState::checked_{load,store}` to trap on misaligned memory accesses
where `aligned` memory flag is set.
* Alter `stack_{load,store}` instructions to now rely on `MemFlags::new()` instead of
`MemFlags::trusted` since `Inte... | diff --git a/cranelift/interpreter/src/interpreter.rs b/cranelift/interpreter/src/interpreter.rs
index aa44f8e3b..eeab50f51 100644
--- a/cranelift/interpreter/src/interpreter.rs
+++ b/cranelift/interpreter/src/interpreter.rs
@@ -336,6 +336,11 @@ impl<'a> State<'a, DataValue> for InterpreterState<'a> {
_ =>... | 3 | 69 | 2 |
66fbb0ed2b821ba3ae542aee43f24a282a081f01 | Trevor Elliott | 2023-02-01T21:15:52 | Co-habitate with wasi-common from wasmtime | diff --git a/wasi-common/Cargo.toml b/wasi-common/Cargo.toml
index e95506896..73a43ee19 100644
--- a/wasi-common/Cargo.toml
+++ b/wasi-common/Cargo.toml
@@ -9,15 +9,9 @@ keywords = ["webassembly", "wasm"]
repository = "https://github.com/bytecodealliance/wasmtime"
readme = "README.md"
edition.workspace = true
-inclu... | 2 | 1 | 19 |
6d9ab2067be94b8bb3d841ab492875e858084b5e | Afonso Bordado | 2023-03-06T18:22:50 | cranelift: Make `sqmul_round_sat` vector only (#5941) | diff --git a/cranelift/codegen/meta/src/shared/instructions.rs b/cranelift/codegen/meta/src/shared/instructions.rs
index 41a289f1a..46fcff76f 100755
--- a/cranelift/codegen/meta/src/shared/instructions.rs
+++ b/cranelift/codegen/meta/src/shared/instructions.rs
@@ -1674,7 +1674,7 @@ pub(crate) fn define(
let I16o... | 1 | 2 | 3 |
c24d4101ae28d9a40b95cdb31714efefe28f0a78 | Afonso Bordado | 2023-03-04T21:23:19 | fuzzgen: Add Invalid inputs counter (#5928) | diff --git a/fuzz/fuzz_targets/cranelift-fuzzgen.rs b/fuzz/fuzz_targets/cranelift-fuzzgen.rs
index 94f3212f3..c6a008bd7 100644
--- a/fuzz/fuzz_targets/cranelift-fuzzgen.rs
+++ b/fuzz/fuzz_targets/cranelift-fuzzgen.rs
@@ -36,6 +36,8 @@ struct Statistics {
/// Inputs that fuzzgen can build a function with
/// T... | 1 | 13 | 1 |
e96214968c2d71842123c5c3e3f4465dabe08d08 | Afonso Bordado | 2023-03-04T19:17:28 | fuzzgen: Move `Arbitrary` structs into the fuzzers (#5820)
* fuzzgen: Move `FunctionWithIsa` to icache fuzzer
* fuzzgen: Move `Testcase` to fuzzgen fuzzer
* fuzzgen: Move allowed libcalls to fuzzers
* fuzzgen: Centralize printing of testcases | diff --git a/Cargo.lock b/Cargo.lock
index a819a215d..8c6c4ef5d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3674,6 +3674,7 @@ dependencies = [
"cranelift-filetests",
"cranelift-fuzzgen",
"cranelift-interpreter",
+ "cranelift-native",
"cranelift-reader",
"cranelift-wasm",
"libfuzzer-sys",
diff --git a/crane... | 6 | 336 | 219 |
08b1d5ea0213f9b8ab775d8055e19922e0984973 | Dan Gohman | 2023-03-01T20:22:12 | Make `read-via-stream` etc. infallible. (#98)
* Make `read-via-stream` etc. infallible.
Wrap `File`'s contents in an `Arc` so that file handles and stream
handles can share the underlying file descriptor, so that we don't have
to call `try_clone()`. This avoids the possibility of `try_clone()`
failing.
This a... | diff --git a/host/src/filesystem.rs b/host/src/filesystem.rs
index e4118cb3b..72efbb8dd 100644
--- a/host/src/filesystem.rs
+++ b/host/src/filesystem.rs
@@ -761,7 +761,7 @@ impl wasi_filesystem::WasiFilesystem for WasiCtx {
let f = self.table_mut().get_file_mut(fd).map_err(convert)?;
// Duplicate th... | 3 | 19 | 49 |
2dd6064005d75e29573d77299a715a0dfb704e44 | Afonso Bordado | 2023-02-28T18:47:09 | fuzzgen: Generate multiple functions per testcase (#5765)
* fuzzgen: Generate multiple functions per testcase
* fuzzgen: Fix typo
Co-authored-by: Jamey Sharp <jamey@minilop.net>
---------
Co-authored-by: Jamey Sharp <jamey@minilop.net> | diff --git a/cranelift/codegen/src/ir/extname.rs b/cranelift/codegen/src/ir/extname.rs
index 00552bbd6..f6aac3b97 100644
--- a/cranelift/codegen/src/ir/extname.rs
+++ b/cranelift/codegen/src/ir/extname.rs
@@ -41,6 +41,14 @@ impl UserFuncName {
pub fn user(namespace: u32, index: u32) -> Self {
Self::User(U... | 5 | 125 | 63 |
ef8a1340dfe168d97c600f69c1edf15c0830734b | Afonso Bordado | 2023-02-28T10:48:14 | fuzzgen: Disable unaligned atomics for RISCV (#5883)
* fuzzgen: Disable unaligned atomics for RISCV
* riscv64: Cleanup atomic alignment logic
Co-authored-by: Jamey Sharp <jamey@minilop.net>
---------
Co-authored-by: Jamey Sharp <jamey@minilop.net> | diff --git a/cranelift/fuzzgen/src/function_generator.rs b/cranelift/fuzzgen/src/function_generator.rs
index a0653cce3..37c504d21 100644
--- a/cranelift/fuzzgen/src/function_generator.rs
+++ b/cranelift/fuzzgen/src/function_generator.rs
@@ -647,6 +647,8 @@ fn valid_for_target(triple: &Triple, op: Opcode, args: &[Type],... | 1 | 10 | 4 |
ddbaf6afba2cdb60d663d6428ffe6f16b383cd09 | Afonso Bordado | 2023-02-28T10:24:24 | fuzzgen: Add `atomic_cas` instruction (#5886) | diff --git a/cranelift/fuzzgen/src/function_generator.rs b/cranelift/fuzzgen/src/function_generator.rs
index 8272a5455..a0653cce3 100644
--- a/cranelift/fuzzgen/src/function_generator.rs
+++ b/cranelift/fuzzgen/src/function_generator.rs
@@ -290,6 +290,36 @@ fn insert_atomic_rmw(
Ok(())
}
+fn insert_atomic_cas(
... | 1 | 35 | 0 |
9915800a47715127c10faa2df1c0423c17ae1c2f | Dan Gohman | 2023-02-27T23:46:21 | Allow preopen file descriptors to be closed. (#96)
* Allow preopen file descriptors to be closed.
This ports the test updates from bytecodealliance/wasmtime#5828 to the
preview2-prototype and implements the ability to close preopened file
descriptors.
* Fix compilation on Windows. | diff --git a/host/src/filesystem.rs b/host/src/filesystem.rs
index 20923a76f..e4118cb3b 100644
--- a/host/src/filesystem.rs
+++ b/host/src/filesystem.rs
@@ -213,7 +213,13 @@ impl wasi_filesystem::WasiFilesystem for WasiCtx {
async fn get_preopens(
&mut self,
) -> Result<Vec<(wasi_filesystem::Descript... | 7 | 81 | 33 |
6f64e39dda3a4f2e356ba08508ae73c77907cd92 | Volker Mische | 2023-02-27T15:10:56 | Fix function call on component instance (#5887)
The exported function in the instance is not called directly by
its name, but by `call_<the-name>`. | diff --git a/crates/wasmtime/src/component/mod.rs b/crates/wasmtime/src/component/mod.rs
index 15212fb92..e5cc6d496 100644
--- a/crates/wasmtime/src/component/mod.rs
+++ b/crates/wasmtime/src/component/mod.rs
@@ -135,7 +135,7 @@ pub(crate) use self::store::ComponentStoreData;
///
/// // Here our `greet` function ... | 1 | 1 | 1 |
a8295ae98e92fe044cc2c859a8902401aaf38b61 | Dan Gohman | 2023-02-25T00:38:53 | Rebase on the new wasi-sockets. (#91)
* Rebase on the new wasi-sockets.
This switches to using the wasi-sockets wit files from
WebAssembly/wasi-sockets#16. Many things are still stubbed out with
`todo!()` for now.
* Fix compilation on Windows. | diff --git a/src/lib.rs b/src/lib.rs
index 999eeb163..939e02844 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,8 +1,8 @@
#![allow(unused_variables)] // TODO: remove this when more things are implemented
use crate::bindings::{
- wasi_default_clocks, wasi_exit, wasi_filesystem, wasi_io, wasi_monotonic_clock, wasi_... | 1 | 48 | 40 |
67e2e57b02cd244c004379690aa56d3d5e187153 | Dan Gohman | 2023-02-24T21:06:38 | Allow WASI preopen file descriptors to be closed. (#5828)
Early on in WASI, we weren't sure whether we should allow preopens to be
closed, so conservatively, we disallowed them. Among other things, this
protected assumptions in wasi-libc that it can hold onto preopen file
descriptors and rely on them always being open... | diff --git a/crates/test-programs/wasi-tests/src/bin/close_preopen.rs b/crates/test-programs/wasi-tests/src/bin/close_preopen.rs
index 9f955f44a..2d8f3a344 100644
--- a/crates/test-programs/wasi-tests/src/bin/close_preopen.rs
+++ b/crates/test-programs/wasi-tests/src/bin/close_preopen.rs
@@ -7,17 +7,7 @@ unsafe fn test... | 4 | 54 | 41 |
5cfb4619458713d368aaec97558708257a2dd46e | Jamey Sharp | 2023-02-24T15:38:48 | Only emit ISLE/egraph terms for single-value insts (#5848)
For instructions with no results (such as branches and stores) or
instructions with multiple results (such as add with carry), we have
assertions checking that an optimization rule doesn't try to match on
or construct such instructions.
When we generate terms... | diff --git a/cranelift/codegen/meta/src/gen_inst.rs b/cranelift/codegen/meta/src/gen_inst.rs
index db43caef6..01ccefb7e 100644
--- a/cranelift/codegen/meta/src/gen_inst.rs
+++ b/cranelift/codegen/meta/src/gen_inst.rs
@@ -1405,7 +1405,9 @@ fn gen_common_isle(
IsleTarget::Opt => "Value",
};
for inst in... | 1 | 3 | 1 |
6d6bd0ea1c315aeb2f35437e09a69570d64648b6 | Ryan Levick | 2023-02-24T15:37:34 | Result alias for convienient use of anyhow::Error without depending on anyhow (#5853)
* Add a Result type alias
* Refer to the type in top-level docs
* Use this inside the documentation for the bindgen! macro
* Fix tests
* Address small PR feedback
* Simply re-export anyhow types | diff --git a/crates/fuzzing/src/oracles.rs b/crates/fuzzing/src/oracles.rs
index 2ed29e6a3..b656dc2ea 100644
--- a/crates/fuzzing/src/oracles.rs
+++ b/crates/fuzzing/src/oracles.rs
@@ -785,7 +785,6 @@ pub fn set_fuel<T>(store: &mut Store<T>, fuel: u64) {
/// arbitrary types and values.
pub fn dynamic_component_api_ta... | 5 | 27 | 26 |
31cce7a1a0eef70b520d5b5f35273f11aa6c2901 | Alex Crichton | 2023-02-24T01:35:17 | Depend on Wasmtime from crates.io (#95)
The hope is that Wasmtime from crates.io is, from now on, sufficient to
run all the component tests and such. | diff --git a/host/Cargo.toml b/host/Cargo.toml
index 4cdd5b76d..3ce5f507e 100644
--- a/host/Cargo.toml
+++ b/host/Cargo.toml
@@ -11,7 +11,7 @@ cap-std = { workspace = true }
cap-rand = { workspace = true }
tokio = { version = "1.22.0", features = [ "rt", "macros" ] }
tracing = { workspace = true }
-wasmtime = { git ... | 1 | 1 | 1 |
f91640ffabc1855afada8e331966554d48fe0f96 | Alex Crichton | 2023-02-23T23:20:05 | Fix a panic due to a race in unpark and park (#5871)
* Remove globals from parking spot tests
Use `std::thread::scope` to keep everything local to just the tests.
* Fix a panic due to a race in `unpark` and `park`
This commit fixes a panic in the `ParkingSpot` implementation where an
`unpark` signal may not get ack... | diff --git a/crates/runtime/src/parking_spot.rs b/crates/runtime/src/parking_spot.rs
index dee1019b2..33f9bce0f 100644
--- a/crates/runtime/src/parking_spot.rs
+++ b/crates/runtime/src/parking_spot.rs
@@ -104,17 +104,53 @@ impl ParkingSpot {
let spot = inner.get_mut(&key).expect("failed to get spot");
... | 1 | 150 | 72 |
fc080c739ed9421fbeeb4c9fdebc927f82c59c25 | Afonso Bordado | 2023-02-23T18:34:28 | fuzzgen: Add `AtomicRMW` (#5861) | diff --git a/cranelift/codegen/src/ir/atomic_rmw_op.rs b/cranelift/codegen/src/ir/atomic_rmw_op.rs
index e9873e55d..9d84c7d0b 100644
--- a/cranelift/codegen/src/ir/atomic_rmw_op.rs
+++ b/cranelift/codegen/src/ir/atomic_rmw_op.rs
@@ -32,6 +32,25 @@ pub enum AtomicRmwOp {
Smax,
}
+impl AtomicRmwOp {
+ /// Retu... | 2 | 112 | 31 |
9719147f91d26f024a4e2f56637c695a42d887b7 | Ulrich Weigand | 2023-02-23T16:32:10 | s390x: Fix integer overflow during negation (#5866)
Use wrapping_neg in i{64,32,16}_from_negated_value to avoid Rust
aborts due to integer overflow. The resulting INT_MIN is already
handled correctly in subsequent operations.
Fixes https://github.com/bytecodealliance/wasmtime/issues/5863. | diff --git a/cranelift/codegen/src/isa/s390x/lower/isle.rs b/cranelift/codegen/src/isa/s390x/lower/isle.rs
index 520cd5f37..a6dfe21e5 100644
--- a/cranelift/codegen/src/isa/s390x/lower/isle.rs
+++ b/cranelift/codegen/src/isa/s390x/lower/isle.rs
@@ -628,21 +628,21 @@ impl generated_code::Context for IsleContext<'_, '_, ... | 1 | 3 | 3 |
761e44bd36ee87347236fcad5e0cd6fffa43dfb8 | Alex Crichton | 2023-02-23T16:04:15 | Fix running WASI tests in isolation (#5865)
Closes #5860 | diff --git a/crates/test-programs/Cargo.toml b/crates/test-programs/Cargo.toml
index caaa4bc32..a9a30df23 100644
--- a/crates/test-programs/Cargo.toml
+++ b/crates/test-programs/Cargo.toml
@@ -13,7 +13,7 @@ cfg-if = "1.0"
[dev-dependencies]
wasi-common = { workspace = true }
wasi-cap-std-sync = { workspace = true }
... | 1 | 1 | 1 |
4f7746da60e75ca5152026f91dcf920061bee6f4 | Noa | 2023-02-23T15:32:35 | Have StoreContext::data return &'a T (#5855) | diff --git a/crates/wasmtime/src/store.rs b/crates/wasmtime/src/store.rs
index b78ca3bee..866aa39f1 100644
--- a/crates/wasmtime/src/store.rs
+++ b/crates/wasmtime/src/store.rs
@@ -980,7 +980,7 @@ impl<'a, T> StoreContext<'a, T> {
/// Access the underlying data owned by this `Store`.
///
/// Same as [`St... | 2 | 8 | 1 |
ed90c0e2f25eddadf7ca3e2e975ee6e6220e1cbd | Joel Dice | 2023-02-22T22:56:58 | short-circuit `fd_write` in the adapter
@guybedford was getting assertion errors in `State::new` due to the
debugging print statements he had added to his `cabi_realloc`
function, which called back into `fd_write`, leading to a circular
dependency where `fd_write` needed to allocate, which caused
`fd_write` to be call... | diff --git a/src/lib.rs b/src/lib.rs
index aa16d6471..999eeb163 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1200,46 +1200,54 @@ pub unsafe extern "C" fn fd_write(
mut iovs_len: usize,
nwritten: *mut Size,
) -> Errno {
- // Advance to the first non-empty buffer.
- while iovs_len != 0 && (*iovs_ptr).buf... | 1 | 44 | 36 |
9a10e85dea4cd30f42463d09647e20e88180bc07 | Alex Crichton | 2023-02-22T15:37:16 | Fix timestamp-to-nanosecond conversion in the adapter (#93)
The order of operations for handling the seconds/nanoseconds part of the
structure were a bit off which meant that a nonzero nanosecond field
would have an unexpected effect on the result.
Closes #92 | diff --git a/host/tests/runtime.rs b/host/tests/runtime.rs
index 28a2fb89d..0a93ecddb 100644
--- a/host/tests/runtime.rs
+++ b/host/tests/runtime.rs
@@ -132,7 +132,7 @@ async fn run_time(mut store: Store<WasiCtx>, wasi: WasiCommand) -> Result<()> {
}
fn now(&self) -> Duration {
- Duration... | 2 | 2 | 2 |
f807e25ed608c30d00636130849a9f3492f75b5b | Alex Crichton | 2023-02-22T15:37:16 | Fix timestamp-to-nanosecond conversion in the adapter (#93)
The order of operations for handling the seconds/nanoseconds part of the
structure were a bit off which meant that a nonzero nanosecond field
would have an unexpected effect on the result.
Closes #92 | diff --git a/src/lib.rs b/src/lib.rs
index ed5f2ef15..aa16d6471 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -378,9 +378,9 @@ pub extern "C" fn clock_res_get(id: Clockid, resolution: &mut Timestamp) -> Errn
}
CLOCKID_REALTIME => {
let res = wasi_wall_clock::resolution(state.def... | 1 | 6 | 6 |
0eb8dd23cc37922a025cfda76da39f7ebe1ae2d7 | Dan Gohman | 2023-02-21T21:44:20 | Make Preview2's directory iterator omit `.` and `..`. (#89)
Preview1's `fd_readdir` includes `.` and `..`, but Preview2 is changing
to avoid this. Update the Preview2 host implementation to omit these
entries, and add code the polyfill to re-add them. | diff --git a/wasi-common/cap-std-sync/src/dir.rs b/wasi-common/cap-std-sync/src/dir.rs
index 8c7ae95cd..33717d928 100644
--- a/wasi-common/cap-std-sync/src/dir.rs
+++ b/wasi-common/cap-std-sync/src/dir.rs
@@ -4,7 +4,7 @@ use std::any::Any;
use std::path::{Path, PathBuf};
use wasi_common::{
dir::{ReaddirCursor, R... | 1 | 4 | 16 |
8c51e155de458554a829f69cccf73a2019468112 | Dan Gohman | 2023-02-21T21:44:20 | Make Preview2's directory iterator omit `.` and `..`. (#89)
Preview1's `fd_readdir` includes `.` and `..`, but Preview2 is changing
to avoid this. Update the Preview2 host implementation to omit these
entries, and add code the polyfill to re-add them. | diff --git a/src/lib.rs b/src/lib.rs
index cb72c86a4..ed5f2ef15 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -914,6 +914,13 @@ pub unsafe extern "C" fn fd_readdir(
} else {
None
};
+
+ // Compute the inode of `.` so that the iterator can produce an entry
+ // for ... | 1 | 40 | 1 |
1e6c94bec1a56a88ea3df518de0d073d26596580 | Afonso Bordado | 2023-02-18T12:23:24 | cranelift-object: Make sections read only by default (#5619)
This changes the default section type to be `ReadOnlyDataWithRel` instead of `Data`.
On COFF types the CRT initializers do not run unless their section is read only.
The new SectionKind makes these sections read only for COFF and MachO, but leaves it as Wri... | diff --git a/cranelift/object/src/backend.rs b/cranelift/object/src/backend.rs
index 13240db1c..b0f12198e 100644
--- a/cranelift/object/src/backend.rs
+++ b/cranelift/object/src/backend.rs
@@ -457,7 +457,7 @@ impl Module for ObjectModule {
} else if relocs.is_empty() {
SectionKind:... | 1 | 1 | 1 |
853ff787f37885b90d743e86487149dc96541ee9 | Afonso Bordado | 2023-02-17T20:48:12 | fuzzgen: Refactor name and signature generation (#5764)
* fuzzgen: Move cranelift type generation into CraneliftArbitrary
* fuzzgen: Deduplicate DataValue generation
* fuzzgen: Remove unused code
* fuzzgen: Pass allowed function calls into `FunctionGenerator` | diff --git a/cranelift/fuzzgen/src/config.rs b/cranelift/fuzzgen/src/config.rs
index 971f6d27e..2ccdf9ef6 100644
--- a/cranelift/fuzzgen/src/config.rs
+++ b/cranelift/fuzzgen/src/config.rs
@@ -30,7 +30,8 @@ pub struct Config {
pub switch_cases: RangeInclusive<usize>,
pub switch_max_range_size: RangeInclusive<... | 4 | 213 | 161 |
a7bd65d116a16f6eb7208f7f3c1046e06e7ccdec | Afonso Bordado | 2023-02-17T20:47:39 | fuzzgen: Allow inline stackprobes for riscv64 (#5822) | diff --git a/cranelift/fuzzgen/src/lib.rs b/cranelift/fuzzgen/src/lib.rs
index e5048f79e..8e7617460 100644
--- a/cranelift/fuzzgen/src/lib.rs
+++ b/cranelift/fuzzgen/src/lib.rs
@@ -321,6 +321,7 @@ where
let supports_inline_probestack = match target_arch {
Architecture::X86_64 => true,
... | 1 | 1 | 0 |
a139ed6d56c392b41ec0cefed23cbe1952edf949 | Trevor Elliott | 2023-02-17T20:39:04 | Fix the postorder traversal in the DominatorTree (#5821)
Fix the postorder traversal computed by the `DominatorTree`. It was
recording nodes in the wrong order depending on the order child nodes
were visited. Consider the following program:
```
function %foo2(i8) -> i8 {
block0(v0: i8):
brif v0, block1, block2
b... | diff --git a/cranelift/codegen/src/dominator_tree.rs b/cranelift/codegen/src/dominator_tree.rs
index 23ccb1783..89335bce1 100644
--- a/cranelift/codegen/src/dominator_tree.rs
+++ b/cranelift/codegen/src/dominator_tree.rs
@@ -2,7 +2,6 @@
use crate::entity::SecondaryMap;
use crate::flowgraph::{BlockPredecessor, Contr... | 1 | 49 | 74 |
8384ac0d87e868cff8f64611fd25f412cb7349c4 | Pat Hickey | 2023-02-09T02:39:31 | get environment and preopens through import functions | diff --git a/host/src/env.rs b/host/src/env.rs
new file mode 100644
index 000000000..38eabe5aa
--- /dev/null
+++ b/host/src/env.rs
@@ -0,0 +1,8 @@
+use crate::{wasi_environment, WasiCtx};
+
+#[async_trait::async_trait]
+impl wasi_environment::WasiEnvironment for WasiCtx {
+ async fn get_environment(&mut self) -> any... | 5 | 76 | 172 |
0e8ee1d2ad9e472baa053cfc20f5c725de79121f | Pat Hickey | 2023-02-16T23:38:42 | comments | diff --git a/src/lib.rs b/src/lib.rs
index 84729a9b6..cb72c86a4 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -155,9 +155,17 @@ fn align_to(ptr: usize, align: usize) -> usize {
(ptr + (align - 1)) & !(align - 1)
}
+// Invariant: buffer not-null and arena is-some are never true at the same
+// time. We did not use... | 1 | 18 | 5 |
3037d417b078ec715933352f46318569113693f8 | Pat Hickey | 2023-02-09T02:39:10 | wasi-common: put env and preopens back in WasiCtx | diff --git a/wasi-common/src/ctx.rs b/wasi-common/src/ctx.rs
index 1b4a4968d..b538e53c8 100644
--- a/wasi-common/src/ctx.rs
+++ b/wasi-common/src/ctx.rs
@@ -13,6 +13,8 @@ pub struct WasiCtx {
pub clocks: WasiClocks,
pub sched: Box<dyn WasiSched>,
pub table: Table,
+ pub env: Vec<(String, String)>,
+ ... | 1 | 14 | 0 |
cf2446efcc7217a04c3e4f64d27773e4214b1b5d | Pat Hickey | 2023-02-16T23:08:05 | add arena allocator for get_environment and get_preopens
and fix other bugs in those implementations | diff --git a/src/lib.rs b/src/lib.rs
index 70cbbd69b..84729a9b6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -158,6 +158,7 @@ fn align_to(ptr: usize, align: usize) -> usize {
struct ImportAlloc {
buffer: Cell<*mut u8>,
len: Cell<usize>,
+ arena: Cell<Option<&'static BumpArena>>,
}
impl ImportAlloc {
@@... | 1 | 55 | 19 |
505ed0b9e809dfc30034284f49a0b0dccadf0762 | Pat Hickey | 2023-02-09T02:39:31 | get environment and preopens through import functions | diff --git a/src/lib.rs b/src/lib.rs
index df5364c98..70cbbd69b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -28,7 +28,7 @@ mod bindings {
unchecked,
// The generated definition of command will pull in std, so we are defining it
// manually below instead
- skip: ["command"],
+ sk... | 1 | 108 | 75 |
7989053e019f5ee8803117908dbf561d999b90c3 | Pat Hickey | 2023-02-17T15:14:03 | Refactor adapter's allocators (#88)
* create a reusable BumpArena, rename command_data to long_lived
* use ImportAlloc::with_buffer to register a bump arena for each import func call
* import alloc just hands out buffer, nothing more
only improvement over prior implementation is this one makes sure alignment ... | diff --git a/src/lib.rs b/src/lib.rs
index 4b05a109f..df5364c98 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -130,7 +130,7 @@ impl<T, E> TrappingUnwrap<T> for Result<T, E> {
pub unsafe extern "C" fn cabi_import_realloc(
old_ptr: *mut u8,
old_size: usize,
- _align: usize,
+ align: usize,
new_size: u... | 1 | 323 | 272 |
4fc768df36e53d1c9f42db6b3ea52af45a3dc129 | Peter Huene | 2023-02-17T15:08:54 | Fix incorrect shadowing of `world` option in component bindgen macro options. (#5813) | diff --git a/crates/component-macro/src/bindgen.rs b/crates/component-macro/src/bindgen.rs
index c96e55e54..bb82b1750 100644
--- a/crates/component-macro/src/bindgen.rs
+++ b/crates/component-macro/src/bindgen.rs
@@ -53,7 +53,6 @@ impl Parse for Config {
let content;
syn::braced!(content in in... | 1 | 0 | 1 |
db9efcb099e07dbb3b433668a5404deefc0eb709 | Fuu | 2023-02-17T02:21:44 | Correct some spelling errors in a comment (#5812) | diff --git a/crates/environ/src/compilation.rs b/crates/environ/src/compilation.rs
index 12126990e..73b752bce 100644
--- a/crates/environ/src/compilation.rs
+++ b/crates/environ/src/compilation.rs
@@ -179,9 +179,9 @@ pub trait Compiler: Send + Sync {
/// Appends a list of compiled functions to an in-memory objec... | 1 | 2 | 2 |
d711872d6367d2f50a14461c48ae4f19d571f984 | Trevor Elliott | 2023-02-16T21:30:17 | Refactor collect_branches_and_targets to not need a smallvec (#5803)
* Refactor collect_branches_and_targets to not need a smallvec
Basic blocks are terminated by at most one branch instruction now, so we
can use that assumption in `collect_branches_and_targets` to return the
last instruction we saw instead.
* Revie... | diff --git a/cranelift/codegen/src/machinst/lower.rs b/cranelift/codegen/src/machinst/lower.rs
index 5115c5b01..c199aa15a 100644
--- a/cranelift/codegen/src/machinst/lower.rs
+++ b/cranelift/codegen/src/machinst/lower.rs
@@ -10,8 +10,8 @@ use crate::fx::{FxHashMap, FxHashSet};
use crate::inst_predicates::{has_lowering... | 1 | 23 | 41 |
c3c16eb207eccd895f5fbbc4b771bd74ea36d071 | Andrew Brown | 2023-02-16T15:37:11 | wasi-threads: build the crate in the CLI application by default (#5782)
This change adds the `wasmtime-wasi-threads` crate as a default crate
for the CLI application. This is no change for embedders of Wasmtime:
they would still have to include `wasmtime-wasi-threads` manually.
Enabling the crate by default in the ... | diff --git a/Cargo.toml b/Cargo.toml
index ed90c0d78..95e892a1c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -201,6 +201,7 @@ default = [
"wasmtime/parallel-compilation",
"vtune",
"wasi-nn",
+ "wasi-threads",
"pooling-allocator",
]
jitdump = ["wasmtime/jitdump"] | 1 | 1 | 0 |
d30ce3192b416010fe3d6fe3a573cad743b7a2b7 | Pat Hickey | 2023-02-16T05:20:27 | wasmtime::component re-exports all Val variant types. Closes #5788 (#5790) | diff --git a/crates/wasmtime/src/component/mod.rs b/crates/wasmtime/src/component/mod.rs
index 2b8430f47..f1f88c2d7 100644
--- a/crates/wasmtime/src/component/mod.rs
+++ b/crates/wasmtime/src/component/mod.rs
@@ -21,7 +21,9 @@ pub use self::func::{
pub use self::instance::{ExportInstance, Exports, Instance, InstancePr... | 2 | 12 | 1 |
aba239e9b826b999553f641b8040d683b68fb69b | Trevor Elliott | 2023-02-15T23:07:03 | Fix handling of jumps in bugpoint (#5794)
Fixes #5792 | diff --git a/cranelift/src/bugpoint.rs b/cranelift/src/bugpoint.rs
index b07720bf0..5713a6e8a 100644
--- a/cranelift/src/bugpoint.rs
+++ b/cranelift/src/bugpoint.rs
@@ -709,32 +709,31 @@ impl Mutator for MergeBlocks {
let pred = cfg.pred_iter(block).next().unwrap();
- // If the branch instruction th... | 1 | 19 | 20 |
fb8997a2a601ca86f91900d43fb8d5c9c9eaa6dd | Dan Gohman | 2023-02-15T14:30:19 | Update wasi-filesystem, wasi-clocks, wasi-io, and wasi-poll.
This updates to the latest versions of the wit files in the proposal
repos, and updates the polyfill and host implementations accordingly.
The changes here are just some renames and reorganizations. | diff --git a/src/lib.rs b/src/lib.rs
index 0b45df592..4b05a109f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,8 +1,8 @@
#![allow(unused_variables)] // TODO: remove this when more things are implemented
use crate::bindings::{
- wasi_clocks, wasi_default_clocks, wasi_exit, wasi_filesystem, wasi_io, wasi_poll, was... | 1 | 19 | 19 |
dd0c03ec96d061c5139f1bd13503bbcf060616f9 | Dan Gohman | 2023-02-15T14:30:19 | Update wasi-filesystem, wasi-clocks, wasi-io, and wasi-poll.
This updates to the latest versions of the wit files in the proposal
repos, and updates the polyfill and host implementations accordingly.
The changes here are just some renames and reorganizations. | diff --git a/host/src/clocks.rs b/host/src/clocks.rs
index 528b49162..3f527e126 100644
--- a/host/src/clocks.rs
+++ b/host/src/clocks.rs
@@ -1,15 +1,22 @@
-use crate::{wasi_clocks, wasi_default_clocks, WasiCtx};
+use crate::poll::PollableEntry;
+use crate::{
+ wasi_default_clocks,
+ wasi_monotonic_clock::{Instant... | 11 | 82 | 86 |
11e24c2e236eabbc5e5537b94a52d0c5fbd9bca3 | Pat Hickey | 2023-02-15T01:40:15 | replace `fn unwrap` and `fn unwrap_result` with postfix `.trapping_unwrap()` (#86)
this is just aesthetic, but prefixed unwraps are a lot harder on the
eyes than postfixed | diff --git a/src/lib.rs b/src/lib.rs
index 47d2631fa..0b45df592 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -76,15 +76,17 @@ pub unsafe extern "C" fn command(
state.preopens = Some(preopens);
for preopen in preopens {
- unwrap_result(state.push_desc(Descriptor::Streams(Streams {
- ... | 1 | 67 | 42 |
e40a838bebab291ce132c2f56ac07193356e95e6 | Koute | 2023-02-14T15:16:27 | Prevent trampoline entrypoints from being stripped out during LTO (#5773)
This works around a `rustc` bug where compiling with LTO
will sometimes strip out some of the trampoline entrypoint
symbols resulting in a linking failure. | diff --git a/crates/runtime/src/libcalls.rs b/crates/runtime/src/libcalls.rs
index 626cae408..2ce3bfc7d 100644
--- a/crates/runtime/src/libcalls.rs
+++ b/crates/runtime/src/libcalls.rs
@@ -122,6 +122,17 @@ pub mod trampolines {
Err(panic) => crate::traphandlers::resume_panic(panic),
... | 1 | 11 | 0 |
abf5b1c431bbb1561fe88ed0cf91f16f3d284911 | Alex Crichton | 2023-02-13T22:48:22 | Move to crates.io/releases of dependencies (#84)
* Use precompiled `wit-bindgen` binaries from CI
* Use a release branch of Wasmtime for 6.0.0
* Use `wit-bindgen`-the-crate from crates.io | diff --git a/host/Cargo.toml b/host/Cargo.toml
index 78da4884f..4cdd5b76d 100644
--- a/host/Cargo.toml
+++ b/host/Cargo.toml
@@ -11,7 +11,7 @@ cap-std = { workspace = true }
cap-rand = { workspace = true }
tokio = { version = "1.22.0", features = [ "rt", "macros" ] }
tracing = { workspace = true }
-wasmtime = { git ... | 2 | 2 | 2 |
0d9bc47e412c5c46928e243e7055e00c66f73308 | Alex Crichton | 2023-02-13T22:48:22 | Move to crates.io/releases of dependencies (#84)
* Use precompiled `wit-bindgen` binaries from CI
* Use a release branch of Wasmtime for 6.0.0
* Use `wit-bindgen`-the-crate from crates.io | diff --git a/src/lib.rs b/src/lib.rs
index a319ba40d..47d2631fa 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -20,7 +20,7 @@ mod macros;
mod bindings {
#[cfg(feature = "command")]
- wit_bindgen_guest_rust::generate!({
+ wit_bindgen::generate!({
world: "wasi-command",
no_std,
raw_s... | 1 | 2 | 2 |
19f337e29b486dc2fd5e8e1759233fc389af7c65 | Trevor Elliott | 2023-02-13T20:50:29 | Move the default block to the front of the underlying jump table storage (#5770)
The new api on JumpTableData makese it easy to keep the default label first, and that shrinks the diff in #5731 a bit. | diff --git a/cranelift/codegen/src/ir/jumptable.rs b/cranelift/codegen/src/ir/jumptable.rs
index 70d0b1ddd..4a847a15e 100644
--- a/cranelift/codegen/src/ir/jumptable.rs
+++ b/cranelift/codegen/src/ir/jumptable.rs
@@ -15,11 +15,10 @@ use serde::{Deserialize, Serialize};
///
/// All jump tables use 0-based indexing and... | 8 | 26 | 28 |
b42c6bd3bb2b9c45e23335e00e8e03768b0af345 | Joel Dice | 2023-02-13T18:53:45 | short-circuit reentrance when allocating stack and `State` (#83)
* short-circuit reentrance when allocating stack and `State`
Per https://github.com/bytecodealliance/wasm-tools/pull/919,
`wit-component` needs to lazily allocate the adapter stack to avoid
premature or infinite reentrance from the main module to th... | diff --git a/host/src/main.rs b/host/src/main.rs
index 26ab3d64e..53fea5555 100644
--- a/host/src/main.rs
+++ b/host/src/main.rs
@@ -36,7 +36,7 @@ async fn main() -> Result<()> {
let (wasi, _instance) = WasiCommand::instantiate_async(&mut store, &component, &linker).await?;
- let result: Result<(), ()> = wa... | 4 | 67 | 20 |
b1f53095718e310c74272a62598030e6b474c07e | Joel Dice | 2023-02-13T18:53:45 | short-circuit reentrance when allocating stack and `State` (#83)
* short-circuit reentrance when allocating stack and `State`
Per https://github.com/bytecodealliance/wasm-tools/pull/919,
`wit-component` needs to lazily allocate the adapter stack to avoid
premature or infinite reentrance from the main module to th... | diff --git a/build.rs b/build.rs
index b5f7ccd30..6b0dc9652 100644
--- a/build.rs
+++ b/build.rs
@@ -28,18 +28,18 @@ fn main() {
/// ```rust
/// std::arch::global_asm!(
/// "
-/// .globaltype internal_global_ptr, i32
-/// internal_global_ptr:
+/// .globaltype internal_state_ptr, i32
+/// ... | 2 | 205 | 119 |
aa4cf137766f1126e9b2a1acff7ad33559019796 | Pat Hickey | 2023-02-09T22:49:43 | Fill in remaining preview1-based filesystem todos hit by wasi-tests (#69)
* filesystem: fill in remaining todo'd methods which have wasi-common implementations
* turn on fd_filestat_set, path_rename_dir_trailing_slashes, and symlink_filestat tests, which now pass
* change expect_fail to a function
* filesyste... | diff --git a/host/src/filesystem.rs b/host/src/filesystem.rs
index b1c31d0bd..25f695a14 100644
--- a/host/src/filesystem.rs
+++ b/host/src/filesystem.rs
@@ -4,9 +4,9 @@ use crate::wasi_poll::{InputStream, OutputStream};
use crate::{wasi_filesystem, HostResult, WasiCtx};
use std::{
io::{IoSlice, IoSliceMut},
- ... | 2 | 141 | 173 |
a2d356d45ebb1465399f000c047db11d0b7557ee | Amanieu d'Antras | 2023-02-09T02:49:17 | Add `JITBuilder::with_flags` constructor (#5751)
This allows custom flags to be set (e.g. `opt-level`) while still
leaving most of of the boilerplate to select the native target to
the `JITBuilder`. | diff --git a/cranelift/jit/src/backend.rs b/cranelift/jit/src/backend.rs
index 5c2aeab81..e3d00a187 100644
--- a/cranelift/jit/src/backend.rs
+++ b/cranelift/jit/src/backend.rs
@@ -42,8 +42,25 @@ impl JITBuilder {
/// argument, use `cranelift_module::default_libcall_names()`.
pub fn new(
libcall_name... | 2 | 31 | 2 |
9637840b4b1d2ab98ea59773f2c5addecbafc588 | Ayomide Bamidele | 2023-02-08T23:56:45 | Update AMD and generic x86 CPU presets to match LLVM (#5575)
* Add x86 AMD and generic presets
* Fix typos
* Add zen2 definition | diff --git a/cranelift/codegen/meta/src/isa/x86.rs b/cranelift/codegen/meta/src/isa/x86.rs
index 91cbf3e6a..47c7ff1ae 100644
--- a/cranelift/codegen/meta/src/isa/x86.rs
+++ b/cranelift/codegen/meta/src/isa/x86.rs
@@ -293,7 +293,7 @@ fn define_settings(shared: &SettingGroup) -> SettingGroup {
);
settings.add_p... | 1 | 91 | 2 |
34ec4b4e44b9fdc22c28d7485a6b5e6e3cb93556 | Trevor Elliott | 2023-02-08T23:42:24 | Reuse `inst_predicates::visit_block_succs` in more places (#5750)
Following up from #5730, replace some explicit matching over branch instructions with a use of inst_predicates::visit_block_succs. | diff --git a/cranelift/codegen/src/dominator_tree.rs b/cranelift/codegen/src/dominator_tree.rs
index 06594aaa9..23ccb1783 100644
--- a/cranelift/codegen/src/dominator_tree.rs
+++ b/cranelift/codegen/src/dominator_tree.rs
@@ -2,7 +2,8 @@
use crate::entity::SecondaryMap;
use crate::flowgraph::{BlockPredecessor, Contr... | 2 | 8 | 55 |
b0b3f67cb0c90887bfa193417733503fd4340b3f | Trevor Elliott | 2023-02-08T05:21:35 | Move jump tables to the DataFlowGraph (#5745)
Move the storage for jump tables off of FunctionStencil and onto DataFlowGraph. This change is in service of #5731, making it easier to access the jump table data in the context of helpers like inst_values. | diff --git a/cranelift/codegen/src/dominator_tree.rs b/cranelift/codegen/src/dominator_tree.rs
index b1b46afc8..06594aaa9 100644
--- a/cranelift/codegen/src/dominator_tree.rs
+++ b/cranelift/codegen/src/dominator_tree.rs
@@ -367,7 +367,7 @@ impl DominatorTree {
destination: dest,
... | 12 | 25 | 24 |
d71c9458dc6d131c90c4e93167326ff1c0c76b3f | Trevor Elliott | 2023-02-08T01:11:14 | Make `DataFlowGraph::blocks` public (#5740)
Similar to when we exposed the DataFlowGraph::insts field through a restrictive newtype, expose DataFlowGraph::blocks through an interface that allows a restrictive set of operations. This field being public now allows us to avoid a rematch in ssa construction, and simplifie... | diff --git a/cranelift/codegen/src/ir/dfg.rs b/cranelift/codegen/src/ir/dfg.rs
index 7b3246187..32f5c4169 100644
--- a/cranelift/codegen/src/ir/dfg.rs
+++ b/cranelift/codegen/src/ir/dfg.rs
@@ -45,6 +45,45 @@ impl IndexMut<Inst> for Insts {
}
}
+/// Storage for basic blocks within the DFG.
+#[derive(Clone, Parti... | 3 | 73 | 48 |
3343cf80e9db7e7650f8bf0fdb3a1220fb1604b2 | Trevor Elliott | 2023-02-07T22:51:18 | Add assertions for matches that used to use analyze_branch (#5733)
Following up from #5730, add debug assertions to ensure that new branch instructions don't slip through matches that used to use analyze_branch. | diff --git a/cranelift/codegen/src/dominator_tree.rs b/cranelift/codegen/src/dominator_tree.rs
index 4f04b14ca..b1b46afc8 100644
--- a/cranelift/codegen/src/dominator_tree.rs
+++ b/cranelift/codegen/src/dominator_tree.rs
@@ -372,7 +372,7 @@ impl DominatorTree {
}
self.push_if_u... | 6 | 6 | 6 |
2c8425998bac42a18d89d088658b2db889a3a982 | Trevor Elliott | 2023-02-07T21:29:42 | Refactor matches that used to consume BranchInfo (#5734)
Explicitly borrow the instruction data, and use a mutable borrow to avoid rematch. | diff --git a/cranelift/codegen/src/dominator_tree.rs b/cranelift/codegen/src/dominator_tree.rs
index d70db2197..4f04b14ca 100644
--- a/cranelift/codegen/src/dominator_tree.rs
+++ b/cranelift/codegen/src/dominator_tree.rs
@@ -351,7 +351,7 @@ impl DominatorTree {
/// post-order except for the insertion of the new bl... | 8 | 24 | 50 |
fdd4a778fc7efc1d6261001ad17f94e5361aa8bb | Raekye | 2023-02-07T21:16:05 | Fix ABI of jitted function in cranelift-jit example. (#5736) | diff --git a/cranelift/jit/examples/jit-minimal.rs b/cranelift/jit/examples/jit-minimal.rs
index 29d210825..3ebf7536f 100644
--- a/cranelift/jit/examples/jit-minimal.rs
+++ b/cranelift/jit/examples/jit-minimal.rs
@@ -84,7 +84,7 @@ fn main() {
let code_b = module.get_finalized_function(func_b);
// Cast it to... | 1 | 1 | 1 |
b80819720e933c5a5c9583a8b3fa58fd26ab3f39 | Pat Hickey | 2023-02-06T21:41:38 | polyfill: fill in fdflags_append from File::append | diff --git a/src/lib.rs b/src/lib.rs
index 05aaa2c65..2cd068185 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -430,6 +430,9 @@ pub unsafe extern "C" fn fd_fdstat_get(fd: Fd, stat: *mut Fdstat) -> Errno {
if flags.contains(wasi_filesystem::DescriptorFlags::SYNC) {
fs_flags |= FDFLAGS_SYNC;
... | 1 | 3 | 0 |
a36cdd66861104295bcd351d47a2b63aa3239f5b | Pat Hickey | 2023-02-06T21:26:55 | test-programs builder: rerun if test-programs source changes | diff --git a/test-programs/macros/build.rs b/test-programs/macros/build.rs
index d8a23e345..24d9802e4 100644
--- a/test-programs/macros/build.rs
+++ b/test-programs/macros/build.rs
@@ -25,6 +25,7 @@ fn main() {
println!("wasi adapter: {:?}", &wasi_adapter);
let wasi_adapter = fs::read(&wasi_adapter).unwrap();... | 1 | 1 | 0 |
e6a81fb12b86cfd175d0417bce344b59c92f76da | Pat Hickey | 2023-02-06T19:00:13 | use OpenOptionsSyncExt to support opening with FdFlags::SYNC family
update the whole cap-std family in the process | diff --git a/wasi-common/cap-std-sync/src/dir.rs b/wasi-common/cap-std-sync/src/dir.rs
index fd5077edb..8c7ae95cd 100644
--- a/wasi-common/cap-std-sync/src/dir.rs
+++ b/wasi-common/cap-std-sync/src/dir.rs
@@ -2,7 +2,6 @@ use crate::file::{filetype_from, get_fd_flags, File};
use cap_fs_ext::{DirEntryExt, DirExt, Metada... | 1 | 13 | 16 |
d006b1bead0d688cc083fd07628f06d381abbefc | Pat Hickey | 2023-02-07T13:53:27 | wasi-tests: add configuration to ignore rights readback (#81)
this is broken at the moment and is getting in the way of testing more
interesting bits of functionality. we'll re-enable it once other stuff
is working. | diff --git a/host/tests/runtime.rs b/host/tests/runtime.rs
index 3d75143c5..0160b12de 100644
--- a/host/tests/runtime.rs
+++ b/host/tests/runtime.rs
@@ -446,7 +446,7 @@ async fn run_with_temp_dir(mut store: Store<WasiCtx>, wasi: WasiCommand) -> Resu
0 as InputStream,
1 as OutputStream,
&["pro... | 9 | 94 | 65 |
08403c9915bbacf9f17e298d7f0700062ea0fc24 | Brendan Burns | 2023-02-07T04:34:01 | Update base64 dependency to 0.21.0 (#5702)
* Update base64 to 0.21.0
* Update code for base64 0.21.0 | diff --git a/Cargo.lock b/Cargo.lock
index 36c5914e8..8641a916f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -153,9 +153,9 @@ dependencies = [
[[package]]
name = "base64"
-version = "0.13.0"
+version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "904dfeac50f3cdaba28fc6f57fd... | 3 | 5 | 4 |
673b448cfe855dc612e64d8ee3a2daad279ea9a8 | Chris Fallin | 2023-02-07T01:21:09 | Cranelift DFG: make inst clone deep-clone varargs lists. (#5727)
When investigating #5716, I found that rematerialization of a `call`, in
addition to blowing up for other reasons, caused aliasing of the varargs
list (the `EntityList` in the `ListPool`), such that editing the args of
the second copy of the call ins... | diff --git a/cranelift/codegen/meta/src/gen_inst.rs b/cranelift/codegen/meta/src/gen_inst.rs
index 25b413c7d..db43caef6 100644
--- a/cranelift/codegen/meta/src/gen_inst.rs
+++ b/cranelift/codegen/meta/src/gen_inst.rs
@@ -383,6 +383,83 @@ fn gen_instruction_data_impl(formats: &[&InstructionFormat], fmt: &mut Formatter
... | 3 | 111 | 0 |
c8a6adf825e8b4c1dff29d77d223736465bf4429 | Trevor Elliott | 2023-02-07T01:06:57 | Remove analyze_branch and BranchInfo (#5730)
We don't have overlap in behavior for branch instructions anymore, so we can remove analyze_branch and instead match on the InstructionData directly.
Co-authored-by: Jamey Sharp <jamey@minilop.net> | diff --git a/cranelift/codegen/src/dominator_tree.rs b/cranelift/codegen/src/dominator_tree.rs
index 0df595107..d70db2197 100644
--- a/cranelift/codegen/src/dominator_tree.rs
+++ b/cranelift/codegen/src/dominator_tree.rs
@@ -2,8 +2,7 @@
use crate::entity::SecondaryMap;
use crate::flowgraph::{BlockPredecessor, Contr... | 11 | 134 | 126 |
16afefdab1117cac17c03c540baa7a46bdd6d732 | bjorn3 | 2023-02-06T23:11:25 | Some refactorings to the ISLE parser (#5693)
* Use is_ascii_digit and is_ascii_hexdigit in the ISLE lexer
* Use range pattern in ISLE lexer
* Use a couple of shorthands in the ISLE parser
* Use parse_ident instead of symbol + str_to_ident
* Introduce token eating api
This is a non-fatal version of the t... | diff --git a/cranelift/isle/isle/src/lexer.rs b/cranelift/isle/isle/src/lexer.rs
index d76b1e16a..a69894449 100644
--- a/cranelift/isle/isle/src/lexer.rs
+++ b/cranelift/isle/isle/src/lexer.rs
@@ -232,7 +232,7 @@ impl<'a> Lexer<'a> {
debug_assert!(!s.is_empty());
Ok(Some((start_pos, To... | 2 | 83 | 113 |
e9c05622c034dc27603e46893dcff0f4567fc8ef | Trevor Elliott | 2023-02-06T22:10:47 | Keep reachable jump tables (#5721)
Instead of identifying unused branch tables by looking for unused blocks inside of them, track used branch tables while traversing reachable blocks. This introduces an extra allocation of an EntitySet to track the used jump tables, but as those are few and this function runs once per... | diff --git a/cranelift/codegen/src/unreachable_code.rs b/cranelift/codegen/src/unreachable_code.rs
index 569b2f2a6..dfb4be5a4 100644
--- a/cranelift/codegen/src/unreachable_code.rs
+++ b/cranelift/codegen/src/unreachable_code.rs
@@ -1,5 +1,7 @@
//! Unreachable code elimination.
+use cranelift_entity::EntitySet;
+
u... | 1 | 9 | 9 |
939b6ea9339ab801f166e8ed4160541da20a564f | Saúl Cabrera | 2023-02-06T22:02:38 | winch: Fix retrieving function signature for compilation (#5725)
This commit fixes an incorrect usage of `func_type_at` to retrieve a defined
function signature and instead uses `function_at` to retrieve the signature.
Additionally it enhances `winch-tools` `compile` and `test` commands to handle
modules with mul... | diff --git a/winch/filetests/src/lib.rs b/winch/filetests/src/lib.rs
index 225445a2a..4400bf065 100644
--- a/winch/filetests/src/lib.rs
+++ b/winch/filetests/src/lib.rs
@@ -112,9 +112,9 @@ mod test {
let binding = body_inputs
.into_iter()
- .flat_map(|func| compile(&*isa, module, type... | 2 | 5 | 4 |
99c39366161eae6eacee4cc70f2540d5cd0ee83b | Afonso Bordado | 2023-02-06T18:27:31 | fuzzgen: Enable `rotl` for riscv64 (#5715)
It was fixed in #5611 | diff --git a/cranelift/fuzzgen/src/function_generator.rs b/cranelift/fuzzgen/src/function_generator.rs
index 927d4460b..4ffc3f679 100644
--- a/cranelift/fuzzgen/src/function_generator.rs
+++ b/cranelift/fuzzgen/src/function_generator.rs
@@ -560,12 +560,6 @@ fn valid_for_target(triple: &Triple, op: Opcode, args: &[Type]... | 1 | 0 | 6 |
60178d0fead1b9538ba1a0c20dcb4a09708a5c0f | Dan Gohman | 2023-02-06T13:43:51 | Split wasi-stream into separate input and output stream types. (#73)
* Split wasi-stream into separate input and output stream types.
This syncs the prototype's streams with the upstream wasi-io repo.
Streams are unidirectional, so this allows us to statically describe
whether something is an input stream or an... | diff --git a/src/lib.rs b/src/lib.rs
index e159d3f07..05aaa2c65 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,7 +1,7 @@
#![allow(unused_variables)] // TODO: remove this when more things are implemented
use crate::bindings::{
- wasi_clocks, wasi_default_clocks, wasi_exit, wasi_filesystem, wasi_poll, wasi_random,... | 1 | 15 | 16 |
b81c32154bb44c5b8dfad7c8445f3d0cbcb91f00 | Dan Gohman | 2023-02-04T00:15:39 | Add the preview1 `sock_accept` function declaration to the polyfill. (#77) | diff --git a/src/lib.rs b/src/lib.rs
index f487120b5..e159d3f07 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1776,6 +1776,13 @@ pub unsafe extern "C" fn random_get(buf: *mut u8, buf_len: Size) -> Errno {
})
}
+/// Accept a new incoming connection.
+/// Note: This is similar to `accept` in POSIX.
+#[no_mangle]
+... | 1 | 7 | 0 |
bb95c24d09f46c8a66e795318cf9cc7812fd00e2 | Dan Gohman | 2023-02-04T00:14:15 | Fix `poll_oneoff`'s timeout value when no timeout is requested. (#76)
When no timeout is requested, pass `-1` to the host `poll` to disable
the timeout. | diff --git a/wasi-common/cap-std-sync/src/sched.rs b/wasi-common/cap-std-sync/src/sched.rs
index 58f3e7010..eff89bbde 100644
--- a/wasi-common/cap-std-sync/src/sched.rs
+++ b/wasi-common/cap-std-sync/src/sched.rs
@@ -80,7 +80,8 @@ pub async fn poll_oneoff<'a>(poll: &mut Poll<'a>) -> Result<(), Error> {
... | 1 | 2 | 1 |
0ba1448fa406f4555b6a67f5f3edbf7f92e306e3 | Saúl Cabrera | 2023-02-03T23:55:30 | winch: Add missing conversions between x64 types (#5703)
This commit adds some missing conversions between Winch's x64 `Reg` type and
Cranelift's `Gpr`, `WritableGpr` and `GprMemImm`. This results in less
boilerplate. This is also a bit of groundwork in the assembler to support
the rest of the integer binary instru... | diff --git a/winch/codegen/src/isa/x64/asm.rs b/winch/codegen/src/isa/x64/asm.rs
index 6734a35d4..762885160 100644
--- a/winch/codegen/src/isa/x64/asm.rs
+++ b/winch/codegen/src/isa/x64/asm.rs
@@ -33,6 +33,25 @@ impl From<Reg> for RegMemImm {
}
}
+impl From<Reg> for WritableGpr {
+ fn from(reg: Reg) -> Self ... | 2 | 41 | 47 |
89ce28a08dda33ae73f98d7e10ba9972b25f5d8c | Pat Hickey | 2023-02-03T19:21:13 | update wasm-tools, plus minor build fix (#75)
* bump wasm-tools to latest releases
* wit-component includes upstream fixes, plus wasm-metadata
* update wasm-encoder to match
* test-programs build.rs: use `cargo +nightly` flag to ensure nightly
on CI, rustup has the default set to nightly, but this may not be... | diff --git a/test-programs/macros/Cargo.toml b/test-programs/macros/Cargo.toml
index 17cf18e4a..3400e1755 100644
--- a/test-programs/macros/Cargo.toml
+++ b/test-programs/macros/Cargo.toml
@@ -13,5 +13,4 @@ test = false
quote = "1.0"
[build-dependencies]
-# TODO: switch to release once https://github.com/bytecodeal... | 2 | 13 | 8 |
fd67ccf9cdfb1816db440147905e8231b73a860c | yuyang | 2023-02-03T00:11:24 | Perform I-Cache Maintenance on RISC-V (#5698)
* re modify this.
* fix compile failure.
* fix unused warning. | diff --git a/crates/jit-icache-coherence/Cargo.toml b/crates/jit-icache-coherence/Cargo.toml
index 3741e6e60..5fdb5bf42 100644
--- a/crates/jit-icache-coherence/Cargo.toml
+++ b/crates/jit-icache-coherence/Cargo.toml
@@ -21,3 +21,11 @@ features = [
[target.'cfg(any(target_os = "linux", target_os = "macos", target_os... | 2 | 50 | 1 |
3c4e2ff0b8ba0790f864b60473eccc38a3ad5a04 | Dan Gohman | 2023-02-02T19:14:00 | Add basic TCP socket APIs. (#33)
* Add basic TCP socket APIs.
This is based on @npmccullum's [wasi-snapshot-preview2 draft] which is
in turn based on the [wasi-sockets proposal], though for simplify for
now it omits UDP sockets and some other features.
It's also based on the [pseudo-streams PR]; so that should... | diff --git a/src/lib.rs b/src/lib.rs
index 2878b517e..f487120b5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1430,9 +1430,9 @@ impl Drop for Pollables {
}
}
-impl From<wasi_tcp::Error> for Errno {
- fn from(error: wasi_tcp::Error) -> Errno {
- use wasi_tcp::Error::*;
+impl From<wasi_tcp::Errno> for Er... | 1 | 41 | 74 |
689f20fe10446c9e850c379e99a727aeb1f718e4 | Dan Gohman | 2023-02-02T19:14:00 | Add basic TCP socket APIs. (#33)
* Add basic TCP socket APIs.
This is based on @npmccullum's [wasi-snapshot-preview2 draft] which is
in turn based on the [wasi-sockets proposal], though for simplify for
now it omits UDP sockets and some other features.
It's also based on the [pseudo-streams PR]; so that should... | diff --git a/host/src/filesystem.rs b/host/src/filesystem.rs
index b5fc9e509..d115adc28 100644
--- a/host/src/filesystem.rs
+++ b/host/src/filesystem.rs
@@ -14,7 +14,7 @@ use wasi_common::{
WasiDir, WasiFile,
};
-// FIXME: guest rust bindgen should add this method to all flags.
+/// TODO: Remove once wasmtime #... | 9 | 380 | 67 |
446337c7463a37effcaeeefec7aabfddd88931c9 | Trevor Elliott | 2023-02-02T15:26:09 | Generate an instance_pre wrapper in the component bindgen output (#5685) | diff --git a/crates/wit-bindgen/src/lib.rs b/crates/wit-bindgen/src/lib.rs
index 6499ccaae..3b01aad4a 100644
--- a/crates/wit-bindgen/src/lib.rs
+++ b/crates/wit-bindgen/src/lib.rs
@@ -265,6 +265,17 @@ impl Wasmtime {
Ok((Self::new(store, &instance)?, instance))
}}
+ ... | 1 | 11 | 0 |
ef8df434c18167ed151ffedc04b6637b281fecb8 | Joel Dice | 2023-02-01T21:10:33 | update `wit-component` to pull in https://github.com/bytecodealliance/wasm-tools/pull/900
Signed-off-by: Joel Dice <joel.dice@fermyon.com> | diff --git a/test-programs/macros/Cargo.toml b/test-programs/macros/Cargo.toml
index 5578689bf..17cf18e4a 100644
--- a/test-programs/macros/Cargo.toml
+++ b/test-programs/macros/Cargo.toml
@@ -13,4 +13,5 @@ test = false
quote = "1.0"
[build-dependencies]
-wit-component = "0.4.2"
+# TODO: switch to release once http... | 1 | 2 | 1 |
1c79bde9b272a2760ef75a3845d0284dc7478b1d | Joel Dice | 2023-02-01T19:55:03 | use main module's `cabi_realloc` instead of `memory.grow`
This depends on https://github.com/bytecodealliance/wasm-tools/pull/900, which
will polyfill an implementation if the main module does not export it.
Signed-off-by: Joel Dice <joel.dice@fermyon.com> | diff --git a/src/lib.rs b/src/lib.rs
index 973ff6f70..2878b517e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,15 +1,15 @@
#![allow(unused_variables)] // TODO: remove this when more things are implemented
use crate::bindings::{
- wasi_clocks, wasi_default_clocks, wasi_exit, wasi_filesystem, wasi_logging, wasi_po... | 1 | 22 | 8 |
8ffbb9cfd7da2c019439bfa74dbbec054f69d893 | Alex Crichton | 2023-02-01T17:43:51 | Reimplement the pooling instance allocation strategy (#5661)
* Reimplement the pooling instance allocation strategy
This commit is a reimplementation of the strategy by which the pooling
instance allocator selects a slot for a module. Previously there was a
choice amongst three different algorithms: "reuse affini... | diff --git a/crates/fuzzing/src/generators/pooling_config.rs b/crates/fuzzing/src/generators/pooling_config.rs
index f0cfef18b..f670746dc 100644
--- a/crates/fuzzing/src/generators/pooling_config.rs
+++ b/crates/fuzzing/src/generators/pooling_config.rs
@@ -6,7 +6,7 @@ use arbitrary::{Arbitrary, Unstructured};
#[derive... | 7 | 436 | 432 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.