Wasm: sort and deduplicate on each round of live function tracing

This commit is contained in:
Brian Carroll 2022-01-12 19:33:38 +00:00
parent 9dabc2db15
commit 6b204d11a2
2 changed files with 5 additions and 1 deletions

View file

@ -140,6 +140,9 @@ pub fn trace_function_deps<'a, Indices: IntoIterator<Item = u32>>(
if next_trace.is_empty() {
break;
}
next_trace.sort_unstable();
next_trace.dedup();
current_trace.clone_from(&next_trace);
next_trace.clear();
}