Skip to content

Commit

Permalink
Fix non-async build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Nov 14, 2024
1 parent 792ce72 commit 8b5edbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/wasmtime/src/runtime/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2118,8 +2118,10 @@ at https://bytecodealliance.org/security.
self.async_state.last_fiber_stack = Some(stack);
}

#[cfg(feature = "async")]
/// Releases the last fiber stack to the underlying instance allocator, if
/// present.
fn flush_fiber_stack(&mut self) {
#[cfg(feature = "async")]
if let Some(stack) = self.async_state.last_fiber_stack.take() {
unsafe {
self.engine.allocator().deallocate_fiber_stack(stack);
Expand Down

0 comments on commit 8b5edbc

Please sign in to comment.