Skip to content

Commit

Permalink
Fix fibre interface
Browse files Browse the repository at this point in the history
  • Loading branch information
dhil committed Jan 20, 2025
1 parent aff32d5 commit 396334c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/wasmtime/src/runtime/vm/fibre/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cfg_if::cfg_if! {

impl FiberStack {
/// Creates a new fiber stack of the given size.
pub fn new(size: usize) -> io::Result<Self> {
pub fn new(size: usize, _zeroed: bool /* TODO(dhil): unimplemented */) -> io::Result<Self> {
Ok(Self(imp::FiberStack::new(size)?))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub mod wasmfx_on_demand {
if #[cfg(all(feature = "unsafe_wasmfx_stacks", any(not(feature = "wasmfx_baseline"), feature = "wasmfx_no_baseline")))] {
super::FiberStack::malloc(self.stack_size)
} else {
super::FiberStack::new(self.stack_size)
super::FiberStack::new(self.stack_size, false /* whether zeroed */)
}
}
};
Expand Down

0 comments on commit 396334c

Please sign in to comment.