Skip to content

Commit

Permalink
Double the default allowed table elements
Browse files Browse the repository at this point in the history
This commit doubles the default allowed table elements per table in the
pooling allocator from 10k to 20k. This helps to, by default, run the
module produced in bytecodealliance#8504.
  • Loading branch information
alexcrichton committed May 2, 2024
1 parent 2c40953 commit 6979f02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/wasmtime/src/runtime/vm/instance/allocator/pooling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ impl Default for InstanceLimits {
total_stacks: 1000,
core_instance_size: 1 << 20, // 1 MiB
max_tables_per_module: 1,
table_elements: 10_000,
// NB: in #8504 it was seen that a C# module in debug module can
// have 10k+ elements.
table_elements: 20_000,
max_memories_per_module: 1,
memory_pages: 160,
#[cfg(feature = "gc")]
Expand Down

0 comments on commit 6979f02

Please sign in to comment.