Skip to content

Commit

Permalink
Merge pull request #768 from andreiltd/pool-alloc-fix
Browse files Browse the repository at this point in the history
Set memory maximum size when checking pool allocation
  • Loading branch information
jprendes authored Dec 9, 2024
2 parents e7371fe + 6898e91 commit 8c6e0c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/containerd-shim-wasmtime/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ fn use_pooling_allocator_by_default() -> Result<bool> {
const BITS_TO_TEST: u32 = 42;
let mut config = Config::new();
config.wasm_memory64(true);
config.static_memory_maximum_size(1 << BITS_TO_TEST);
let engine = wasmtime::Engine::new(&config)?;
let mut store = Store::new(&engine, ());
let ty = wasmtime::MemoryType::new64(0, Some(1 << (BITS_TO_TEST - 16)));
Expand Down

0 comments on commit 8c6e0c1

Please sign in to comment.