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.
This commit is contained in:
Alex Crichton
2022-03-03 11:23:39 -06:00
committed by GitHub
parent 7d1bc7d808
commit 38d0d426f2

View File

@@ -343,6 +343,7 @@ impl Config {
config.reference_types_enabled = true; config.reference_types_enabled = true;
config.multi_value_enabled = true; config.multi_value_enabled = true;
config.max_memories = 1; config.max_memories = 1;
config.max_tables = 5;
if let InstanceAllocationStrategy::Pooling { if let InstanceAllocationStrategy::Pooling {
instance_limits: limits, instance_limits: limits,
@@ -350,6 +351,7 @@ impl Config {
} = &mut self.wasmtime.strategy } = &mut self.wasmtime.strategy
{ {
limits.memories = 1; limits.memories = 1;
limits.tables = 5;
// Set a lower bound of 10 pages as the spec tests define memories with at // 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. // least a few pages and some tests do memory grow operations.
limits.memory_pages = std::cmp::max(limits.memory_pages, 10); limits.memory_pages = std::cmp::max(limits.memory_pages, 10);