Skip to content

Commit

Permalink
Clear invalidation stats after printing
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Mar 19, 2024
1 parent c29cdfa commit 9b3937c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/codegen/codegen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ module Dump = struct
loop entries 0;
end;
close();
Hashtbl.clear stats
end

(*
Expand Down

2 comments on commit 9b3937c

@Simn
Copy link
Member

@Simn Simn commented on 9b3937c Mar 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This relies on the print actually happening which I don't think it should. I'd reset this before compilation instead, there's a nice function for that in serverCompilationContext.ml.

@kLabz
Copy link
Contributor Author

@kLabz kLabz commented on 9b3937c Mar 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shouldn't be filled if that print is not happening, but yeah it didn't seem good. I still added it there in the meantime because I didn't find that function, will update

Please sign in to comment.