Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions crates/fuzzing/src/oracles/component_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ fn store<T>(input: &mut Unstructured<'_>, val: T) -> arbitrary::Result<Store<T>>
}
}

const MEMORY_NEEDED: usize = 100 << 20; // 100 MiB

if let InstanceAllocationStrategy::Pooling(p) = &mut config.wasmtime.strategy {
set_min(&mut p.total_component_instances, 5);
set_min(&mut p.total_core_instances, 5);
Expand All @@ -204,11 +206,11 @@ fn store<T>(input: &mut Unstructured<'_>, val: T) -> arbitrary::Result<Store<T>>
set_min(&mut p.component_instance_size, 64 << 10);
set_min(&mut p.core_instance_size, 64 << 10);
p.memory_protection_keys = Enabled::No;
p.max_memory_size = 10 << 20; // 10 MiB
p.max_memory_size = MEMORY_NEEDED;
}
set_opt_min(
&mut config.wasmtime.memory_config.memory_reservation,
10 << 20,
MEMORY_NEEDED as u64,
);

// Re-enforce internal consistency after the adjustments above (e.g.
Expand Down