Skip to content

Commit

Permalink
Fix baseline pooling allocator. The guard page has already been alloc…
Browse files Browse the repository at this point in the history
…ated.
  • Loading branch information
dhil committed Oct 3, 2024
1 parent 933d89e commit 7b145fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ pub mod wasmfx_pooling {
let bottom_of_stack = self
.stack_mapping
.as_ptr()
.add((index * self.stack_size) + self.page_size)
.add(index * self.stack_size)
.cast_mut();

commit_pages(bottom_of_stack, size_without_guard)?;
Expand Down

0 comments on commit 7b145fc

Please sign in to comment.