Skip to content

Commit 90ab791

Browse files
authored
Increase minimum available stacks when fuzzing wast tests (#11263)
This fixes a fuzz failure with the new async tests which require more than one stack.
1 parent 6809d54 commit 90ab791

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

crates/fuzzing/src/generators/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ impl Config {
229229
pooling.component_instance_size = pooling
230230
.component_instance_size
231231
.max(limits::CORE_INSTANCE_SIZE);
232+
pooling.total_stacks = pooling.total_stacks.max(limits::TOTAL_STACKS);
232233
}
233234

234235
// Return the test configuration that this fuzz configuration represents

crates/test-util/src/wast.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pub mod limits {
2525
pub const CORE_INSTANCES: u32 = 900;
2626
pub const TABLE_ELEMENTS: usize = 1000;
2727
pub const CORE_INSTANCE_SIZE: usize = 64 * 1024;
28+
pub const TOTAL_STACKS: u32 = 10;
2829
}
2930

3031
/// Local all `*.wast` tests under `root` which should be the path to the root

0 commit comments

Comments
 (0)