From 38d0d426f2d1b1111cd36b269a2676f4f67d323b Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 3 Mar 2022 11:23:39 -0600 Subject: [PATCH] fuzz: Bump table limit with spectest fuzzing (#3878) Spec tests need multiple tables so increase the limits on the pooling allocator when enabled for spec tests to ensure that all the spec tests can run. --- crates/fuzzing/src/generators.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/fuzzing/src/generators.rs b/crates/fuzzing/src/generators.rs index 87aa46ab13..7601af6f2f 100644 --- a/crates/fuzzing/src/generators.rs +++ b/crates/fuzzing/src/generators.rs @@ -343,6 +343,7 @@ impl Config { config.reference_types_enabled = true; config.multi_value_enabled = true; config.max_memories = 1; + config.max_tables = 5; if let InstanceAllocationStrategy::Pooling { instance_limits: limits, @@ -350,6 +351,7 @@ impl Config { } = &mut self.wasmtime.strategy { limits.memories = 1; + limits.tables = 5; // Set a lower bound of 10 pages as the spec tests define memories with at // least a few pages and some tests do memory grow operations. limits.memory_pages = std::cmp::max(limits.memory_pages, 10);