Skip to content

Commit

Permalink
Do another GC after running Wasm in the table_ops test oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzgen committed Jan 27, 2022
1 parent 7990876 commit 3fcfe12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/fuzzing/src/oracles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 3fcfe12

Please sign in to comment.