Skip to content

Commit

Permalink
Reset basicblock vector on collection start
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel-Durov committed Feb 12, 2024
1 parent b723700 commit b2d0c6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ykrt/src/trace/swt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ pub(crate) struct SWTracer {}

impl super::Tracer for SWTracer {
fn start_collector(self: Arc<Self>) -> Result<Box<dyn TraceCollector>, Box<dyn Error>> {
BASIC_BLOCKS.with(|bbs| {
bbs.borrow_mut().clear();
});
return Ok(Box::new(SWTTraceCollector {}));
}
}
Expand Down

0 comments on commit b2d0c6d

Please sign in to comment.