Skip to content

Commit

Permalink
Fix silly concurrency bug (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
atomb authored Sep 6, 2023
1 parent 85191e1 commit f088818
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Source/Core/AST/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
Expand Down Expand Up @@ -400,7 +401,7 @@ public List<GlobalVariable /*!*/> /*!*/ GlobalVariables
}
}

public readonly ISet<TrackedNodeComponent> AllCoveredElements = new HashSet<TrackedNodeComponent>();
public readonly ConcurrentBag<TrackedNodeComponent> AllCoveredElements = new();

public IEnumerable<Block> Blocks()
{
Expand Down Expand Up @@ -589,4 +590,4 @@ public PredicateCmd CreateCandidateInvariant(Expr e, string tag = null)
}

public Monomorphizer monomorphizer;
}
}
2 changes: 1 addition & 1 deletion Source/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- Target framework and package configuration -->
<PropertyGroup>
<Version>3.0.2</Version>
<Version>3.0.3</Version>
<TargetFramework>net6.0</TargetFramework>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<Authors>Boogie</Authors>
Expand Down

0 comments on commit f088818

Please sign in to comment.