From f292ff55cfb8306939fc2e03324007fe015d839e Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Thu, 27 Jan 2022 14:13:16 -0800 Subject: [PATCH] Do another GC after running Wasm in the `table_ops` test oracle --- crates/fuzzing/src/oracles.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/fuzzing/src/oracles.rs b/crates/fuzzing/src/oracles.rs index 3b443e5e1d..c1feba5509 100644 --- a/crates/fuzzing/src/oracles.rs +++ b/crates/fuzzing/src/oracles.rs @@ -540,6 +540,9 @@ pub fn table_ops(mut fuzz_config: generators::Config, ops: generators::table_ops .map(|_| Val::ExternRef(Some(ExternRef::new(CountDrops(num_dropped.clone()))))) .collect(); let _ = run.call(&mut store, &args, &mut []); + + // Do a final GC after running the Wasm. + store.gc(); } assert_eq!(num_dropped.load(SeqCst), expected_drops.load(SeqCst));