Browse Source

Use a small GC heap when running under MIRI (#9160)

pull/9099/head
Nick Fitzgerald 3 months ago
committed by GitHub
parent
commit
3137116a4a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      crates/wasmtime/src/runtime/vm/gc/enabled.rs

5
crates/wasmtime/src/runtime/vm/gc/enabled.rs

@ -21,4 +21,9 @@ pub fn default_gc_runtime() -> impl GcRuntime {
}
/// The default GC heap capacity: 512KiB.
#[cfg(not(miri))]
const DEFAULT_GC_HEAP_CAPACITY: usize = 1 << 19;
/// The default GC heap capacity for miri: 64KiB.
#[cfg(miri)]
const DEFAULT_GC_HEAP_CAPACITY: usize = 1 << 16;

Loading…
Cancel
Save